#include <tree_sitter/parser.h>

#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif

#define LANGUAGE_VERSION 12
#define STATE_COUNT 244
#define LARGE_STATE_COUNT 2
#define SYMBOL_COUNT 107
#define ALIAS_COUNT 0
#define TOKEN_COUNT 77
#define EXTERNAL_TOKEN_COUNT 0
#define FIELD_COUNT 0
#define MAX_ALIAS_SEQUENCE_LENGTH 8

enum {
  sym_identifier = 1,
  anon_sym_when = 2,
  anon_sym_unless = 3,
  anon_sym_unique = 4,
  anon_sym_if = 5,
  anon_sym_comptime = 6,
  anon_sym_elif = 7,
  anon_sym_else = 8,
  anon_sym_while = 9,
  anon_sym_for = 10,
  anon_sym_in = 11,
  anon_sym_continue = 12,
  anon_sym_break = 13,
  anon_sym_return = 14,
  anon_sym_let = 15,
  anon_sym_mut = 16,
  anon_sym_var = 17,
  anon_sym_set = 18,
  anon_sym_raw = 19,
  anon_sym_pipe = 20,
  anon_sym_comb = 21,
  anon_sym_type = 22,
  anon_sym_EQ = 23,
  anon_sym_COLON_EQ = 24,
  anon_sym_PLUS_EQ = 25,
  anon_sym_DASH_EQ = 26,
  anon_sym_PLUS_PLUS_EQ = 27,
  anon_sym_PIPE_EQ = 28,
  anon_sym_AMP_EQ = 29,
  anon_sym_CARET_EQ = 30,
  anon_sym_STAR_EQ = 31,
  anon_sym_SLASH_EQ = 32,
  anon_sym_or_EQ = 33,
  anon_sym_and_EQ = 34,
  anon_sym_LBRACE = 35,
  anon_sym_RBRACE = 36,
  anon_sym_or = 37,
  anon_sym_and = 38,
  anon_sym_implies = 39,
  anon_sym_is = 40,
  anon_sym_isnot = 41,
  anon_sym_LT = 42,
  anon_sym_LT_EQ = 43,
  anon_sym_EQ_EQ = 44,
  anon_sym_BANG_EQ = 45,
  anon_sym_GT_EQ = 46,
  anon_sym_GT = 47,
  anon_sym_BANG = 48,
  anon_sym_DASH = 49,
  anon_sym_TILDE = 50,
  anon_sym_LPAREN = 51,
  anon_sym_RPAREN = 52,
  anon_sym_COLON = 53,
  anon_sym_constrain = 54,
  anon_sym_PIPE = 55,
  anon_sym_COMMA = 56,
  anon_sym_DOLLAR = 57,
  anon_sym_PERCENT = 58,
  anon_sym_POUND = 59,
  anon_sym_DOT = 60,
  anon_sym_LBRACK = 61,
  anon_sym_RBRACK = 62,
  anon_sym_AT = 63,
  anon_sym_sext = 64,
  anon_sym_zext = 65,
  anon_sym_AMP = 66,
  anon_sym_CARET = 67,
  anon_sym_PLUS = 68,
  sym_integer = 69,
  anon_sym_DQUOTE = 70,
  aux_sym_string_token1 = 71,
  sym__escape_sequence = 72,
  aux_sym__newline_token1 = 73,
  aux_sym__newline_token2 = 74,
  aux_sym__newline_token3 = 75,
  sym_comment = 76,
  sym_file_top = 77,
  sym_stmt = 78,
  sym__stmt_itself = 79,
  sym_if_stmt = 80,
  sym_while_stmt = 81,
  sym_for_stmt = 82,
  sym_ctrl_stmt = 83,
  sym_ass_fcall_stmt = 84,
  sym_assign_attribute = 85,
  sym_assignment_cont = 86,
  sym_new_scope = 87,
  sym_bool_expr = 88,
  sym_bool_expr_cont = 89,
  sym_factor = 90,
  sym_fcall_args = 91,
  sym_typecase = 92,
  sym_fcall_def = 93,
  sym_new_fun_scope = 94,
  sym_variable_base = 95,
  sym_variable_bit_sel = 96,
  sym_string = 97,
  sym_constant = 98,
  aux_sym__newline = 99,
  aux_sym_file_top_repeat1 = 100,
  aux_sym_if_stmt_repeat1 = 101,
  aux_sym_bool_expr_repeat1 = 102,
  aux_sym_fcall_def_repeat1 = 103,
  aux_sym_fcall_def_repeat2 = 104,
  aux_sym_variable_base_repeat1 = 105,
  aux_sym_string_repeat1 = 106,
};

static const char *ts_symbol_names[] = {
  [ts_builtin_sym_end] = "end",
  [sym_identifier] = "identifier",
  [anon_sym_when] = "when",
  [anon_sym_unless] = "unless",
  [anon_sym_unique] = "unique",
  [anon_sym_if] = "if",
  [anon_sym_comptime] = "comptime",
  [anon_sym_elif] = "elif",
  [anon_sym_else] = "else",
  [anon_sym_while] = "while",
  [anon_sym_for] = "for",
  [anon_sym_in] = "in",
  [anon_sym_continue] = "continue",
  [anon_sym_break] = "break",
  [anon_sym_return] = "return",
  [anon_sym_let] = "let",
  [anon_sym_mut] = "mut",
  [anon_sym_var] = "var",
  [anon_sym_set] = "set",
  [anon_sym_raw] = "raw",
  [anon_sym_pipe] = "pipe",
  [anon_sym_comb] = "comb",
  [anon_sym_type] = "type",
  [anon_sym_EQ] = "=",
  [anon_sym_COLON_EQ] = ":=",
  [anon_sym_PLUS_EQ] = "+=",
  [anon_sym_DASH_EQ] = "-=",
  [anon_sym_PLUS_PLUS_EQ] = "++=",
  [anon_sym_PIPE_EQ] = "|=",
  [anon_sym_AMP_EQ] = "&=",
  [anon_sym_CARET_EQ] = "^=",
  [anon_sym_STAR_EQ] = "*=",
  [anon_sym_SLASH_EQ] = "/=",
  [anon_sym_or_EQ] = "or=",
  [anon_sym_and_EQ] = "and=",
  [anon_sym_LBRACE] = "{",
  [anon_sym_RBRACE] = "}",
  [anon_sym_or] = "or",
  [anon_sym_and] = "and",
  [anon_sym_implies] = "implies",
  [anon_sym_is] = "is",
  [anon_sym_isnot] = "isnot",
  [anon_sym_LT] = "<",
  [anon_sym_LT_EQ] = "<=",
  [anon_sym_EQ_EQ] = "==",
  [anon_sym_BANG_EQ] = "!=",
  [anon_sym_GT_EQ] = ">=",
  [anon_sym_GT] = ">",
  [anon_sym_BANG] = "!",
  [anon_sym_DASH] = "-",
  [anon_sym_TILDE] = "~",
  [anon_sym_LPAREN] = "(",
  [anon_sym_RPAREN] = ")",
  [anon_sym_COLON] = ":",
  [anon_sym_constrain] = "constrain",
  [anon_sym_PIPE] = "|",
  [anon_sym_COMMA] = ",",
  [anon_sym_DOLLAR] = "$",
  [anon_sym_PERCENT] = "%",
  [anon_sym_POUND] = "#",
  [anon_sym_DOT] = ".",
  [anon_sym_LBRACK] = "[",
  [anon_sym_RBRACK] = "]",
  [anon_sym_AT] = "@",
  [anon_sym_sext] = "sext",
  [anon_sym_zext] = "zext",
  [anon_sym_AMP] = "&",
  [anon_sym_CARET] = "^",
  [anon_sym_PLUS] = "+",
  [sym_integer] = "integer",
  [anon_sym_DQUOTE] = "\"",
  [aux_sym_string_token1] = "string_token1",
  [sym__escape_sequence] = "_escape_sequence",
  [aux_sym__newline_token1] = "_newline_token1",
  [aux_sym__newline_token2] = "_newline_token2",
  [aux_sym__newline_token3] = "_newline_token3",
  [sym_comment] = "comment",
  [sym_file_top] = "file_top",
  [sym_stmt] = "stmt",
  [sym__stmt_itself] = "_stmt_itself",
  [sym_if_stmt] = "if_stmt",
  [sym_while_stmt] = "while_stmt",
  [sym_for_stmt] = "for_stmt",
  [sym_ctrl_stmt] = "ctrl_stmt",
  [sym_ass_fcall_stmt] = "ass_fcall_stmt",
  [sym_assign_attribute] = "assign_attribute",
  [sym_assignment_cont] = "assignment_cont",
  [sym_new_scope] = "new_scope",
  [sym_bool_expr] = "bool_expr",
  [sym_bool_expr_cont] = "bool_expr_cont",
  [sym_factor] = "factor",
  [sym_fcall_args] = "fcall_args",
  [sym_typecase] = "typecase",
  [sym_fcall_def] = "fcall_def",
  [sym_new_fun_scope] = "new_fun_scope",
  [sym_variable_base] = "variable_base",
  [sym_variable_bit_sel] = "variable_bit_sel",
  [sym_string] = "string",
  [sym_constant] = "constant",
  [aux_sym__newline] = "_newline",
  [aux_sym_file_top_repeat1] = "file_top_repeat1",
  [aux_sym_if_stmt_repeat1] = "if_stmt_repeat1",
  [aux_sym_bool_expr_repeat1] = "bool_expr_repeat1",
  [aux_sym_fcall_def_repeat1] = "fcall_def_repeat1",
  [aux_sym_fcall_def_repeat2] = "fcall_def_repeat2",
  [aux_sym_variable_base_repeat1] = "variable_base_repeat1",
  [aux_sym_string_repeat1] = "string_repeat1",
};

static TSSymbol ts_symbol_map[] = {
  [ts_builtin_sym_end] = ts_builtin_sym_end,
  [sym_identifier] = sym_identifier,
  [anon_sym_when] = anon_sym_when,
  [anon_sym_unless] = anon_sym_unless,
  [anon_sym_unique] = anon_sym_unique,
  [anon_sym_if] = anon_sym_if,
  [anon_sym_comptime] = anon_sym_comptime,
  [anon_sym_elif] = anon_sym_elif,
  [anon_sym_else] = anon_sym_else,
  [anon_sym_while] = anon_sym_while,
  [anon_sym_for] = anon_sym_for,
  [anon_sym_in] = anon_sym_in,
  [anon_sym_continue] = anon_sym_continue,
  [anon_sym_break] = anon_sym_break,
  [anon_sym_return] = anon_sym_return,
  [anon_sym_let] = anon_sym_let,
  [anon_sym_mut] = anon_sym_mut,
  [anon_sym_var] = anon_sym_var,
  [anon_sym_set] = anon_sym_set,
  [anon_sym_raw] = anon_sym_raw,
  [anon_sym_pipe] = anon_sym_pipe,
  [anon_sym_comb] = anon_sym_comb,
  [anon_sym_type] = anon_sym_type,
  [anon_sym_EQ] = anon_sym_EQ,
  [anon_sym_COLON_EQ] = anon_sym_COLON_EQ,
  [anon_sym_PLUS_EQ] = anon_sym_PLUS_EQ,
  [anon_sym_DASH_EQ] = anon_sym_DASH_EQ,
  [anon_sym_PLUS_PLUS_EQ] = anon_sym_PLUS_PLUS_EQ,
  [anon_sym_PIPE_EQ] = anon_sym_PIPE_EQ,
  [anon_sym_AMP_EQ] = anon_sym_AMP_EQ,
  [anon_sym_CARET_EQ] = anon_sym_CARET_EQ,
  [anon_sym_STAR_EQ] = anon_sym_STAR_EQ,
  [anon_sym_SLASH_EQ] = anon_sym_SLASH_EQ,
  [anon_sym_or_EQ] = anon_sym_or_EQ,
  [anon_sym_and_EQ] = anon_sym_and_EQ,
  [anon_sym_LBRACE] = anon_sym_LBRACE,
  [anon_sym_RBRACE] = anon_sym_RBRACE,
  [anon_sym_or] = anon_sym_or,
  [anon_sym_and] = anon_sym_and,
  [anon_sym_implies] = anon_sym_implies,
  [anon_sym_is] = anon_sym_is,
  [anon_sym_isnot] = anon_sym_isnot,
  [anon_sym_LT] = anon_sym_LT,
  [anon_sym_LT_EQ] = anon_sym_LT_EQ,
  [anon_sym_EQ_EQ] = anon_sym_EQ_EQ,
  [anon_sym_BANG_EQ] = anon_sym_BANG_EQ,
  [anon_sym_GT_EQ] = anon_sym_GT_EQ,
  [anon_sym_GT] = anon_sym_GT,
  [anon_sym_BANG] = anon_sym_BANG,
  [anon_sym_DASH] = anon_sym_DASH,
  [anon_sym_TILDE] = anon_sym_TILDE,
  [anon_sym_LPAREN] = anon_sym_LPAREN,
  [anon_sym_RPAREN] = anon_sym_RPAREN,
  [anon_sym_COLON] = anon_sym_COLON,
  [anon_sym_constrain] = anon_sym_constrain,
  [anon_sym_PIPE] = anon_sym_PIPE,
  [anon_sym_COMMA] = anon_sym_COMMA,
  [anon_sym_DOLLAR] = anon_sym_DOLLAR,
  [anon_sym_PERCENT] = anon_sym_PERCENT,
  [anon_sym_POUND] = anon_sym_POUND,
  [anon_sym_DOT] = anon_sym_DOT,
  [anon_sym_LBRACK] = anon_sym_LBRACK,
  [anon_sym_RBRACK] = anon_sym_RBRACK,
  [anon_sym_AT] = anon_sym_AT,
  [anon_sym_sext] = anon_sym_sext,
  [anon_sym_zext] = anon_sym_zext,
  [anon_sym_AMP] = anon_sym_AMP,
  [anon_sym_CARET] = anon_sym_CARET,
  [anon_sym_PLUS] = anon_sym_PLUS,
  [sym_integer] = sym_integer,
  [anon_sym_DQUOTE] = anon_sym_DQUOTE,
  [aux_sym_string_token1] = aux_sym_string_token1,
  [sym__escape_sequence] = sym__escape_sequence,
  [aux_sym__newline_token1] = aux_sym__newline_token1,
  [aux_sym__newline_token2] = aux_sym__newline_token2,
  [aux_sym__newline_token3] = aux_sym__newline_token3,
  [sym_comment] = sym_comment,
  [sym_file_top] = sym_file_top,
  [sym_stmt] = sym_stmt,
  [sym__stmt_itself] = sym__stmt_itself,
  [sym_if_stmt] = sym_if_stmt,
  [sym_while_stmt] = sym_while_stmt,
  [sym_for_stmt] = sym_for_stmt,
  [sym_ctrl_stmt] = sym_ctrl_stmt,
  [sym_ass_fcall_stmt] = sym_ass_fcall_stmt,
  [sym_assign_attribute] = sym_assign_attribute,
  [sym_assignment_cont] = sym_assignment_cont,
  [sym_new_scope] = sym_new_scope,
  [sym_bool_expr] = sym_bool_expr,
  [sym_bool_expr_cont] = sym_bool_expr_cont,
  [sym_factor] = sym_factor,
  [sym_fcall_args] = sym_fcall_args,
  [sym_typecase] = sym_typecase,
  [sym_fcall_def] = sym_fcall_def,
  [sym_new_fun_scope] = sym_new_fun_scope,
  [sym_variable_base] = sym_variable_base,
  [sym_variable_bit_sel] = sym_variable_bit_sel,
  [sym_string] = sym_string,
  [sym_constant] = sym_constant,
  [aux_sym__newline] = aux_sym__newline,
  [aux_sym_file_top_repeat1] = aux_sym_file_top_repeat1,
  [aux_sym_if_stmt_repeat1] = aux_sym_if_stmt_repeat1,
  [aux_sym_bool_expr_repeat1] = aux_sym_bool_expr_repeat1,
  [aux_sym_fcall_def_repeat1] = aux_sym_fcall_def_repeat1,
  [aux_sym_fcall_def_repeat2] = aux_sym_fcall_def_repeat2,
  [aux_sym_variable_base_repeat1] = aux_sym_variable_base_repeat1,
  [aux_sym_string_repeat1] = aux_sym_string_repeat1,
};

static const TSSymbolMetadata ts_symbol_metadata[] = {
  [ts_builtin_sym_end] = {
    .visible = false,
    .named = true,
  },
  [sym_identifier] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_when] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_unless] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_unique] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_if] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_comptime] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_elif] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_else] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_while] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_for] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_in] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_continue] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_break] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_return] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_let] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_mut] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_var] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_set] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_raw] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_pipe] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_comb] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_type] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_COLON_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_PLUS_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_DASH_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_PLUS_PLUS_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_PIPE_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_AMP_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_CARET_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_STAR_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_SLASH_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_or_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_and_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LBRACE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RBRACE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_or] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_and] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_implies] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_is] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_isnot] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LT_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_EQ_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_BANG_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_GT_EQ] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_GT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_BANG] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_DASH] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_TILDE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LPAREN] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RPAREN] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_COLON] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_constrain] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_PIPE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_COMMA] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_DOLLAR] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_PERCENT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_POUND] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_DOT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LBRACK] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RBRACK] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_AT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_sext] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_zext] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_AMP] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_CARET] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_PLUS] = {
    .visible = true,
    .named = false,
  },
  [sym_integer] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_DQUOTE] = {
    .visible = true,
    .named = false,
  },
  [aux_sym_string_token1] = {
    .visible = false,
    .named = false,
  },
  [sym__escape_sequence] = {
    .visible = false,
    .named = true,
  },
  [aux_sym__newline_token1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym__newline_token2] = {
    .visible = false,
    .named = false,
  },
  [aux_sym__newline_token3] = {
    .visible = false,
    .named = false,
  },
  [sym_comment] = {
    .visible = true,
    .named = true,
  },
  [sym_file_top] = {
    .visible = true,
    .named = true,
  },
  [sym_stmt] = {
    .visible = true,
    .named = true,
  },
  [sym__stmt_itself] = {
    .visible = false,
    .named = true,
  },
  [sym_if_stmt] = {
    .visible = true,
    .named = true,
  },
  [sym_while_stmt] = {
    .visible = true,
    .named = true,
  },
  [sym_for_stmt] = {
    .visible = true,
    .named = true,
  },
  [sym_ctrl_stmt] = {
    .visible = true,
    .named = true,
  },
  [sym_ass_fcall_stmt] = {
    .visible = true,
    .named = true,
  },
  [sym_assign_attribute] = {
    .visible = true,
    .named = true,
  },
  [sym_assignment_cont] = {
    .visible = true,
    .named = true,
  },
  [sym_new_scope] = {
    .visible = true,
    .named = true,
  },
  [sym_bool_expr] = {
    .visible = true,
    .named = true,
  },
  [sym_bool_expr_cont] = {
    .visible = true,
    .named = true,
  },
  [sym_factor] = {
    .visible = true,
    .named = true,
  },
  [sym_fcall_args] = {
    .visible = true,
    .named = true,
  },
  [sym_typecase] = {
    .visible = true,
    .named = true,
  },
  [sym_fcall_def] = {
    .visible = true,
    .named = true,
  },
  [sym_new_fun_scope] = {
    .visible = true,
    .named = true,
  },
  [sym_variable_base] = {
    .visible = true,
    .named = true,
  },
  [sym_variable_bit_sel] = {
    .visible = true,
    .named = true,
  },
  [sym_string] = {
    .visible = true,
    .named = true,
  },
  [sym_constant] = {
    .visible = true,
    .named = true,
  },
  [aux_sym__newline] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_file_top_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_if_stmt_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_bool_expr_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_fcall_def_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_fcall_def_repeat2] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_variable_base_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_string_repeat1] = {
    .visible = false,
    .named = false,
  },
};

static TSSymbol ts_alias_sequences[1][MAX_ALIAS_SEQUENCE_LENGTH] = {
  [0] = {0},
};

static uint16_t ts_non_terminal_alias_map[] = {
  0,
};

static bool ts_lex(TSLexer *lexer, TSStateId state) {
  START_LEXER();
  eof = lexer->eof(lexer);
  switch (state) {
    case 0:
      if (eof) ADVANCE(45);
      if (lookahead == '!') ADVANCE(68);
      if (lookahead == '"') ADVANCE(104);
      if (lookahead == '#') ADVANCE(81);
      if (lookahead == '$') ADVANCE(79);
      if (lookahead == '%') ADVANCE(80);
      if (lookahead == '&') ADVANCE(87);
      if (lookahead == '(') ADVANCE(72);
      if (lookahead == ')') ADVANCE(73);
      if (lookahead == '*') ADVANCE(17);
      if (lookahead == '+') ADVANCE(91);
      if (lookahead == ',') ADVANCE(78);
      if (lookahead == '-') ADVANCE(70);
      if (lookahead == '.') ADVANCE(82);
      if (lookahead == '/') ADVANCE(11);
      if (lookahead == '0') ADVANCE(98);
      if (lookahead == ':') ADVANCE(75);
      if (lookahead == ';') ADVANCE(113);
      if (lookahead == '<') ADVANCE(61);
      if (lookahead == '=') ADVANCE(47);
      if (lookahead == '>') ADVANCE(66);
      if (lookahead == '@') ADVANCE(85);
      if (lookahead == '[') ADVANCE(83);
      if (lookahead == '\\') ADVANCE(1);
      if (lookahead == ']') ADVANCE(84);
      if (lookahead == '^') ADVANCE(89);
      if (lookahead == 'a') ADVANCE(95);
      if (lookahead == 'o') ADVANCE(96);
      if (lookahead == '{') ADVANCE(59);
      if (lookahead == '|') ADVANCE(77);
      if (lookahead == '}') ADVANCE(60);
      if (lookahead == '~') ADVANCE(71);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(0)
      if (('1' <= lookahead && lookahead <= '9')) ADVANCE(99);
      if (lookahead != 0 &&
          (lookahead < 0 || 'Z' < lookahead) &&
          lookahead != '`') ADVANCE(97);
      END_STATE();
    case 1:
      if (lookahead == '\n') ADVANCE(110);
      if (lookahead == '\r') ADVANCE(110);
      if (lookahead == 'U') ADVANCE(41);
      if (lookahead == 'u') ADVANCE(37);
      if (lookahead == 'x') ADVANCE(35);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(112);
      if (lookahead != 0) ADVANCE(110);
      END_STATE();
    case 2:
      if (lookahead == '\n') ADVANCE(114);
      if (lookahead == '!') ADVANCE(67);
      if (lookahead == '"') ADVANCE(104);
      if (lookahead == '#') ADVANCE(81);
      if (lookahead == '$') ADVANCE(79);
      if (lookahead == '%') ADVANCE(80);
      if (lookahead == '(') ADVANCE(72);
      if (lookahead == '-') ADVANCE(69);
      if (lookahead == '/') ADVANCE(10);
      if (lookahead == '0') ADVANCE(98);
      if (lookahead == ';') ADVANCE(113);
      if (lookahead == '\\') ADVANCE(4);
      if (lookahead == '|') ADVANCE(76);
      if (lookahead == '~') ADVANCE(71);
      if (lookahead == '\t' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(2)
      if (('1' <= lookahead && lookahead <= '9')) ADVANCE(99);
      if (lookahead != 0 &&
          (lookahead < 0 || '^' < lookahead) &&
          lookahead != '`' &&
          (lookahead < '{' || '}' < lookahead)) ADVANCE(97);
      END_STATE();
    case 3:
      if (lookahead == '\n') ADVANCE(115);
      END_STATE();
    case 4:
      if (lookahead == '\n') ADVANCE(115);
      if (lookahead == '\r') ADVANCE(3);
      END_STATE();
    case 5:
      if (lookahead == '\n') SKIP(8)
      if (lookahead == '"') ADVANCE(104);
      if (lookahead == '/') ADVANCE(105);
      if (lookahead == '\\') ADVANCE(25);
      if (lookahead == '\t' ||
          lookahead == '\r' ||
          lookahead == ' ') ADVANCE(108);
      if (lookahead != 0) ADVANCE(109);
      END_STATE();
    case 6:
      if (lookahead == '!') ADVANCE(67);
      if (lookahead == '"') ADVANCE(104);
      if (lookahead == '#') ADVANCE(81);
      if (lookahead == '$') ADVANCE(79);
      if (lookahead == '%') ADVANCE(80);
      if (lookahead == '(') ADVANCE(72);
      if (lookahead == ')') ADVANCE(73);
      if (lookahead == '-') ADVANCE(69);
      if (lookahead == '/') ADVANCE(10);
      if (lookahead == '0') ADVANCE(98);
      if (lookahead == '|') ADVANCE(76);
      if (lookahead == '~') ADVANCE(71);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(6)
      if (('1' <= lookahead && lookahead <= '9')) ADVANCE(99);
      if (lookahead != 0 &&
          (lookahead < 0 || '^' < lookahead) &&
          lookahead != '`' &&
          (lookahead < '{' || '}' < lookahead)) ADVANCE(97);
      END_STATE();
    case 7:
      if (lookahead == '!') ADVANCE(15);
      if (lookahead == '&') ADVANCE(16);
      if (lookahead == '(') ADVANCE(72);
      if (lookahead == ')') ADVANCE(73);
      if (lookahead == '*') ADVANCE(17);
      if (lookahead == '+') ADVANCE(14);
      if (lookahead == '-') ADVANCE(18);
      if (lookahead == '.') ADVANCE(82);
      if (lookahead == '/') ADVANCE(11);
      if (lookahead == ':') ADVANCE(75);
      if (lookahead == '<') ADVANCE(61);
      if (lookahead == '=') ADVANCE(47);
      if (lookahead == '>') ADVANCE(66);
      if (lookahead == '@') ADVANCE(85);
      if (lookahead == '[') ADVANCE(83);
      if (lookahead == ']') ADVANCE(84);
      if (lookahead == '^') ADVANCE(20);
      if (lookahead == 'a') ADVANCE(95);
      if (lookahead == 'o') ADVANCE(96);
      if (lookahead == '{') ADVANCE(59);
      if (lookahead == '|') ADVANCE(21);
      if (lookahead == '}') ADVANCE(60);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(7)
      if (lookahead != 0 &&
          (lookahead < 0 || '\\' < lookahead) &&
          lookahead != '`' &&
          lookahead != '~') ADVANCE(97);
      END_STATE();
    case 8:
      if (lookahead == '"') ADVANCE(104);
      if (lookahead == '/') ADVANCE(10);
      if (lookahead == '\\') ADVANCE(25);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(8)
      END_STATE();
    case 9:
      if (lookahead == '&') ADVANCE(16);
      if (lookahead == '*') ADVANCE(17);
      if (lookahead == '+') ADVANCE(14);
      if (lookahead == '-') ADVANCE(18);
      if (lookahead == '/') ADVANCE(11);
      if (lookahead == ':') ADVANCE(75);
      if (lookahead == '=') ADVANCE(46);
      if (lookahead == '^') ADVANCE(20);
      if (lookahead == 'a') ADVANCE(27);
      if (lookahead == 'o') ADVANCE(28);
      if (lookahead == '|') ADVANCE(21);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(9)
      END_STATE();
    case 10:
      if (lookahead == '*') ADVANCE(13);
      if (lookahead == '/') ADVANCE(117);
      END_STATE();
    case 11:
      if (lookahead == '*') ADVANCE(13);
      if (lookahead == '/') ADVANCE(117);
      if (lookahead == '=') ADVANCE(56);
      END_STATE();
    case 12:
      if (lookahead == '*') ADVANCE(12);
      if (lookahead == '/') ADVANCE(116);
      if (lookahead != 0) ADVANCE(13);
      END_STATE();
    case 13:
      if (lookahead == '*') ADVANCE(12);
      if (lookahead != 0) ADVANCE(13);
      END_STATE();
    case 14:
      if (lookahead == '+') ADVANCE(22);
      if (lookahead == '=') ADVANCE(49);
      END_STATE();
    case 15:
      if (lookahead == '=') ADVANCE(64);
      END_STATE();
    case 16:
      if (lookahead == '=') ADVANCE(53);
      END_STATE();
    case 17:
      if (lookahead == '=') ADVANCE(55);
      END_STATE();
    case 18:
      if (lookahead == '=') ADVANCE(50);
      END_STATE();
    case 19:
      if (lookahead == '=') ADVANCE(63);
      END_STATE();
    case 20:
      if (lookahead == '=') ADVANCE(54);
      END_STATE();
    case 21:
      if (lookahead == '=') ADVANCE(52);
      END_STATE();
    case 22:
      if (lookahead == '=') ADVANCE(51);
      END_STATE();
    case 23:
      if (lookahead == '=') ADVANCE(57);
      END_STATE();
    case 24:
      if (lookahead == '=') ADVANCE(58);
      END_STATE();
    case 25:
      if (lookahead == 'U') ADVANCE(41);
      if (lookahead == 'u') ADVANCE(37);
      if (lookahead == 'x') ADVANCE(35);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(112);
      if (lookahead != 0) ADVANCE(110);
      END_STATE();
    case 26:
      if (lookahead == 'd') ADVANCE(24);
      END_STATE();
    case 27:
      if (lookahead == 'n') ADVANCE(26);
      END_STATE();
    case 28:
      if (lookahead == 'r') ADVANCE(23);
      END_STATE();
    case 29:
      if (lookahead == '8' ||
          lookahead == '9') ADVANCE(99);
      if (('0' <= lookahead && lookahead <= '7')) ADVANCE(103);
      END_STATE();
    case 30:
      if (lookahead == '0' ||
          lookahead == '1' ||
          lookahead == '?') ADVANCE(100);
      END_STATE();
    case 31:
      if (('0' <= lookahead && lookahead <= '7')) ADVANCE(101);
      END_STATE();
    case 32:
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(99);
      END_STATE();
    case 33:
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(110);
      END_STATE();
    case 34:
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(102);
      END_STATE();
    case 35:
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(33);
      END_STATE();
    case 36:
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(35);
      END_STATE();
    case 37:
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(36);
      END_STATE();
    case 38:
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(37);
      END_STATE();
    case 39:
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(38);
      END_STATE();
    case 40:
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(39);
      END_STATE();
    case 41:
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(40);
      END_STATE();
    case 42:
      if (lookahead != 0 &&
          lookahead != '\r') ADVANCE(117);
      if (lookahead == '\r') ADVANCE(118);
      END_STATE();
    case 43:
      if (eof) ADVANCE(45);
      if (lookahead == '\n') ADVANCE(114);
      if (lookahead == '!') ADVANCE(15);
      if (lookahead == '#') ADVANCE(81);
      if (lookahead == '$') ADVANCE(79);
      if (lookahead == '%') ADVANCE(80);
      if (lookahead == '(') ADVANCE(72);
      if (lookahead == '.') ADVANCE(82);
      if (lookahead == '/') ADVANCE(10);
      if (lookahead == ':') ADVANCE(74);
      if (lookahead == ';') ADVANCE(113);
      if (lookahead == '<') ADVANCE(61);
      if (lookahead == '=') ADVANCE(19);
      if (lookahead == '>') ADVANCE(66);
      if (lookahead == '@') ADVANCE(85);
      if (lookahead == '[') ADVANCE(83);
      if (lookahead == '\\') ADVANCE(4);
      if (lookahead == '|') ADVANCE(76);
      if (lookahead == '}') ADVANCE(60);
      if (lookahead == '\t' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(43)
      if (lookahead != 0 &&
          (lookahead < 0 || '^' < lookahead) &&
          lookahead != '`' &&
          (lookahead < '{' || '~' < lookahead)) ADVANCE(97);
      END_STATE();
    case 44:
      if (eof) ADVANCE(45);
      if (lookahead == '!') ADVANCE(15);
      if (lookahead == '"') ADVANCE(104);
      if (lookahead == '#') ADVANCE(81);
      if (lookahead == '$') ADVANCE(79);
      if (lookahead == '%') ADVANCE(80);
      if (lookahead == '&') ADVANCE(86);
      if (lookahead == '(') ADVANCE(72);
      if (lookahead == ')') ADVANCE(73);
      if (lookahead == '+') ADVANCE(90);
      if (lookahead == '/') ADVANCE(10);
      if (lookahead == '0') ADVANCE(98);
      if (lookahead == ':') ADVANCE(74);
      if (lookahead == '<') ADVANCE(61);
      if (lookahead == '=') ADVANCE(19);
      if (lookahead == '>') ADVANCE(66);
      if (lookahead == '@') ADVANCE(85);
      if (lookahead == ']') ADVANCE(84);
      if (lookahead == '^') ADVANCE(88);
      if (lookahead == '{') ADVANCE(59);
      if (lookahead == '|') ADVANCE(76);
      if (lookahead == '}') ADVANCE(60);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(44)
      if (('1' <= lookahead && lookahead <= '9')) ADVANCE(99);
      if (lookahead != 0 &&
          (lookahead < 0 || '\\' < lookahead) &&
          lookahead != '`' &&
          lookahead != '~') ADVANCE(97);
      END_STATE();
    case 45:
      ACCEPT_TOKEN(ts_builtin_sym_end);
      END_STATE();
    case 46:
      ACCEPT_TOKEN(anon_sym_EQ);
      END_STATE();
    case 47:
      ACCEPT_TOKEN(anon_sym_EQ);
      if (lookahead == '=') ADVANCE(63);
      END_STATE();
    case 48:
      ACCEPT_TOKEN(anon_sym_COLON_EQ);
      END_STATE();
    case 49:
      ACCEPT_TOKEN(anon_sym_PLUS_EQ);
      END_STATE();
    case 50:
      ACCEPT_TOKEN(anon_sym_DASH_EQ);
      END_STATE();
    case 51:
      ACCEPT_TOKEN(anon_sym_PLUS_PLUS_EQ);
      END_STATE();
    case 52:
      ACCEPT_TOKEN(anon_sym_PIPE_EQ);
      END_STATE();
    case 53:
      ACCEPT_TOKEN(anon_sym_AMP_EQ);
      END_STATE();
    case 54:
      ACCEPT_TOKEN(anon_sym_CARET_EQ);
      END_STATE();
    case 55:
      ACCEPT_TOKEN(anon_sym_STAR_EQ);
      END_STATE();
    case 56:
      ACCEPT_TOKEN(anon_sym_SLASH_EQ);
      END_STATE();
    case 57:
      ACCEPT_TOKEN(anon_sym_or_EQ);
      END_STATE();
    case 58:
      ACCEPT_TOKEN(anon_sym_and_EQ);
      END_STATE();
    case 59:
      ACCEPT_TOKEN(anon_sym_LBRACE);
      END_STATE();
    case 60:
      ACCEPT_TOKEN(anon_sym_RBRACE);
      END_STATE();
    case 61:
      ACCEPT_TOKEN(anon_sym_LT);
      if (lookahead == '=') ADVANCE(62);
      END_STATE();
    case 62:
      ACCEPT_TOKEN(anon_sym_LT_EQ);
      END_STATE();
    case 63:
      ACCEPT_TOKEN(anon_sym_EQ_EQ);
      END_STATE();
    case 64:
      ACCEPT_TOKEN(anon_sym_BANG_EQ);
      END_STATE();
    case 65:
      ACCEPT_TOKEN(anon_sym_GT_EQ);
      END_STATE();
    case 66:
      ACCEPT_TOKEN(anon_sym_GT);
      if (lookahead == '=') ADVANCE(65);
      END_STATE();
    case 67:
      ACCEPT_TOKEN(anon_sym_BANG);
      END_STATE();
    case 68:
      ACCEPT_TOKEN(anon_sym_BANG);
      if (lookahead == '=') ADVANCE(64);
      END_STATE();
    case 69:
      ACCEPT_TOKEN(anon_sym_DASH);
      END_STATE();
    case 70:
      ACCEPT_TOKEN(anon_sym_DASH);
      if (lookahead == '=') ADVANCE(50);
      END_STATE();
    case 71:
      ACCEPT_TOKEN(anon_sym_TILDE);
      END_STATE();
    case 72:
      ACCEPT_TOKEN(anon_sym_LPAREN);
      END_STATE();
    case 73:
      ACCEPT_TOKEN(anon_sym_RPAREN);
      END_STATE();
    case 74:
      ACCEPT_TOKEN(anon_sym_COLON);
      END_STATE();
    case 75:
      ACCEPT_TOKEN(anon_sym_COLON);
      if (lookahead == '=') ADVANCE(48);
      END_STATE();
    case 76:
      ACCEPT_TOKEN(anon_sym_PIPE);
      END_STATE();
    case 77:
      ACCEPT_TOKEN(anon_sym_PIPE);
      if (lookahead == '=') ADVANCE(52);
      END_STATE();
    case 78:
      ACCEPT_TOKEN(anon_sym_COMMA);
      END_STATE();
    case 79:
      ACCEPT_TOKEN(anon_sym_DOLLAR);
      END_STATE();
    case 80:
      ACCEPT_TOKEN(anon_sym_PERCENT);
      END_STATE();
    case 81:
      ACCEPT_TOKEN(anon_sym_POUND);
      END_STATE();
    case 82:
      ACCEPT_TOKEN(anon_sym_DOT);
      END_STATE();
    case 83:
      ACCEPT_TOKEN(anon_sym_LBRACK);
      END_STATE();
    case 84:
      ACCEPT_TOKEN(anon_sym_RBRACK);
      END_STATE();
    case 85:
      ACCEPT_TOKEN(anon_sym_AT);
      END_STATE();
    case 86:
      ACCEPT_TOKEN(anon_sym_AMP);
      END_STATE();
    case 87:
      ACCEPT_TOKEN(anon_sym_AMP);
      if (lookahead == '=') ADVANCE(53);
      END_STATE();
    case 88:
      ACCEPT_TOKEN(anon_sym_CARET);
      END_STATE();
    case 89:
      ACCEPT_TOKEN(anon_sym_CARET);
      if (lookahead == '=') ADVANCE(54);
      END_STATE();
    case 90:
      ACCEPT_TOKEN(anon_sym_PLUS);
      END_STATE();
    case 91:
      ACCEPT_TOKEN(anon_sym_PLUS);
      if (lookahead == '+') ADVANCE(22);
      if (lookahead == '=') ADVANCE(49);
      END_STATE();
    case 92:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == '=') ADVANCE(57);
      if (lookahead != 0 &&
          (lookahead < 0 || '/' < lookahead) &&
          (lookahead < ':' || '@' < lookahead) &&
          (lookahead < '[' || '^' < lookahead) &&
          lookahead != '`' &&
          (lookahead < '{' || '~' < lookahead)) ADVANCE(97);
      END_STATE();
    case 93:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == '=') ADVANCE(58);
      if (lookahead != 0 &&
          (lookahead < 0 || '/' < lookahead) &&
          (lookahead < ':' || '@' < lookahead) &&
          (lookahead < '[' || '^' < lookahead) &&
          lookahead != '`' &&
          (lookahead < '{' || '~' < lookahead)) ADVANCE(97);
      END_STATE();
    case 94:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 'd') ADVANCE(93);
      if (lookahead != 0 &&
          (lookahead < 0 || '/' < lookahead) &&
          (lookahead < ':' || '@' < lookahead) &&
          (lookahead < '[' || '^' < lookahead) &&
          lookahead != '`' &&
          (lookahead < '{' || '~' < lookahead)) ADVANCE(97);
      END_STATE();
    case 95:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 'n') ADVANCE(94);
      if (lookahead != 0 &&
          (lookahead < 0 || '/' < lookahead) &&
          (lookahead < ':' || '@' < lookahead) &&
          (lookahead < '[' || '^' < lookahead) &&
          lookahead != '`' &&
          (lookahead < '{' || '~' < lookahead)) ADVANCE(97);
      END_STATE();
    case 96:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead == 'r') ADVANCE(92);
      if (lookahead != 0 &&
          (lookahead < 0 || '/' < lookahead) &&
          (lookahead < ':' || '@' < lookahead) &&
          (lookahead < '[' || '^' < lookahead) &&
          lookahead != '`' &&
          (lookahead < '{' || '~' < lookahead)) ADVANCE(97);
      END_STATE();
    case 97:
      ACCEPT_TOKEN(sym_identifier);
      if (lookahead != 0 &&
          (lookahead < 0 || '/' < lookahead) &&
          (lookahead < ':' || '@' < lookahead) &&
          (lookahead < '[' || '^' < lookahead) &&
          lookahead != '`' &&
          (lookahead < '{' || '~' < lookahead)) ADVANCE(97);
      END_STATE();
    case 98:
      ACCEPT_TOKEN(sym_integer);
      if (lookahead == '_') ADVANCE(32);
      if (lookahead == '8' ||
          lookahead == '9') ADVANCE(99);
      if (lookahead == 'B' ||
          lookahead == 'b') ADVANCE(30);
      if (lookahead == 'D' ||
          lookahead == 'd') ADVANCE(32);
      if (lookahead == 'O' ||
          lookahead == 'o') ADVANCE(31);
      if (lookahead == 'X' ||
          lookahead == 'x') ADVANCE(34);
      if (('0' <= lookahead && lookahead <= '7')) ADVANCE(103);
      END_STATE();
    case 99:
      ACCEPT_TOKEN(sym_integer);
      if (lookahead == '_') ADVANCE(32);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(99);
      END_STATE();
    case 100:
      ACCEPT_TOKEN(sym_integer);
      if (lookahead == '_') ADVANCE(30);
      if (lookahead == '0' ||
          lookahead == '1' ||
          lookahead == '?') ADVANCE(100);
      END_STATE();
    case 101:
      ACCEPT_TOKEN(sym_integer);
      if (lookahead == '_') ADVANCE(31);
      if (('0' <= lookahead && lookahead <= '7')) ADVANCE(101);
      END_STATE();
    case 102:
      ACCEPT_TOKEN(sym_integer);
      if (lookahead == '_') ADVANCE(34);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(102);
      END_STATE();
    case 103:
      ACCEPT_TOKEN(sym_integer);
      if (lookahead == '_') ADVANCE(29);
      if (lookahead == '8' ||
          lookahead == '9') ADVANCE(99);
      if (('0' <= lookahead && lookahead <= '7')) ADVANCE(103);
      END_STATE();
    case 104:
      ACCEPT_TOKEN(anon_sym_DQUOTE);
      END_STATE();
    case 105:
      ACCEPT_TOKEN(aux_sym_string_token1);
      if (lookahead == '*') ADVANCE(107);
      if (lookahead == '/') ADVANCE(109);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(109);
      END_STATE();
    case 106:
      ACCEPT_TOKEN(aux_sym_string_token1);
      if (lookahead == '*') ADVANCE(106);
      if (lookahead == '/') ADVANCE(109);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(107);
      END_STATE();
    case 107:
      ACCEPT_TOKEN(aux_sym_string_token1);
      if (lookahead == '*') ADVANCE(106);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(107);
      END_STATE();
    case 108:
      ACCEPT_TOKEN(aux_sym_string_token1);
      if (lookahead == '/') ADVANCE(105);
      if (lookahead == '\t' ||
          lookahead == '\r' ||
          lookahead == ' ') ADVANCE(108);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(109);
      END_STATE();
    case 109:
      ACCEPT_TOKEN(aux_sym_string_token1);
      if (lookahead != 0 &&
          lookahead != '\n' &&
          lookahead != '"' &&
          lookahead != '\\') ADVANCE(109);
      END_STATE();
    case 110:
      ACCEPT_TOKEN(sym__escape_sequence);
      END_STATE();
    case 111:
      ACCEPT_TOKEN(sym__escape_sequence);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(110);
      END_STATE();
    case 112:
      ACCEPT_TOKEN(sym__escape_sequence);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(111);
      END_STATE();
    case 113:
      ACCEPT_TOKEN(aux_sym__newline_token1);
      END_STATE();
    case 114:
      ACCEPT_TOKEN(aux_sym__newline_token2);
      if (lookahead == '\n') ADVANCE(114);
      END_STATE();
    case 115:
      ACCEPT_TOKEN(aux_sym__newline_token3);
      END_STATE();
    case 116:
      ACCEPT_TOKEN(sym_comment);
      END_STATE();
    case 117:
      ACCEPT_TOKEN(sym_comment);
      if (lookahead == '\\') ADVANCE(42);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(117);
      END_STATE();
    case 118:
      ACCEPT_TOKEN(sym_comment);
      if (lookahead != 0 &&
          lookahead != '\\') ADVANCE(117);
      if (lookahead == '\\') ADVANCE(42);
      END_STATE();
    default:
      return false;
  }
}

static bool ts_lex_keywords(TSLexer *lexer, TSStateId state) {
  START_LEXER();
  eof = lexer->eof(lexer);
  switch (state) {
    case 0:
      if (lookahead == 'a') ADVANCE(1);
      if (lookahead == 'b') ADVANCE(2);
      if (lookahead == 'c') ADVANCE(3);
      if (lookahead == 'e') ADVANCE(4);
      if (lookahead == 'f') ADVANCE(5);
      if (lookahead == 'i') ADVANCE(6);
      if (lookahead == 'l') ADVANCE(7);
      if (lookahead == 'm') ADVANCE(8);
      if (lookahead == 'o') ADVANCE(9);
      if (lookahead == 'p') ADVANCE(10);
      if (lookahead == 'r') ADVANCE(11);
      if (lookahead == 's') ADVANCE(12);
      if (lookahead == 't') ADVANCE(13);
      if (lookahead == 'u') ADVANCE(14);
      if (lookahead == 'v') ADVANCE(15);
      if (lookahead == 'w') ADVANCE(16);
      if (lookahead == 'z') ADVANCE(17);
      if (lookahead == '\t' ||
          lookahead == '\n' ||
          lookahead == '\r' ||
          lookahead == ' ') SKIP(0)
      END_STATE();
    case 1:
      if (lookahead == 'n') ADVANCE(18);
      END_STATE();
    case 2:
      if (lookahead == 'r') ADVANCE(19);
      END_STATE();
    case 3:
      if (lookahead == 'o') ADVANCE(20);
      END_STATE();
    case 4:
      if (lookahead == 'l') ADVANCE(21);
      END_STATE();
    case 5:
      if (lookahead == 'o') ADVANCE(22);
      END_STATE();
    case 6:
      if (lookahead == 'f') ADVANCE(23);
      if (lookahead == 'm') ADVANCE(24);
      if (lookahead == 'n') ADVANCE(25);
      if (lookahead == 's') ADVANCE(26);
      END_STATE();
    case 7:
      if (lookahead == 'e') ADVANCE(27);
      END_STATE();
    case 8:
      if (lookahead == 'u') ADVANCE(28);
      END_STATE();
    case 9:
      if (lookahead == 'r') ADVANCE(29);
      END_STATE();
    case 10:
      if (lookahead == 'i') ADVANCE(30);
      END_STATE();
    case 11:
      if (lookahead == 'a') ADVANCE(31);
      if (lookahead == 'e') ADVANCE(32);
      END_STATE();
    case 12:
      if (lookahead == 'e') ADVANCE(33);
      END_STATE();
    case 13:
      if (lookahead == 'y') ADVANCE(34);
      END_STATE();
    case 14:
      if (lookahead == 'n') ADVANCE(35);
      END_STATE();
    case 15:
      if (lookahead == 'a') ADVANCE(36);
      END_STATE();
    case 16:
      if (lookahead == 'h') ADVANCE(37);
      END_STATE();
    case 17:
      if (lookahead == 'e') ADVANCE(38);
      END_STATE();
    case 18:
      if (lookahead == 'd') ADVANCE(39);
      END_STATE();
    case 19:
      if (lookahead == 'e') ADVANCE(40);
      END_STATE();
    case 20:
      if (lookahead == 'm') ADVANCE(41);
      if (lookahead == 'n') ADVANCE(42);
      END_STATE();
    case 21:
      if (lookahead == 'i') ADVANCE(43);
      if (lookahead == 's') ADVANCE(44);
      END_STATE();
    case 22:
      if (lookahead == 'r') ADVANCE(45);
      END_STATE();
    case 23:
      ACCEPT_TOKEN(anon_sym_if);
      END_STATE();
    case 24:
      if (lookahead == 'p') ADVANCE(46);
      END_STATE();
    case 25:
      ACCEPT_TOKEN(anon_sym_in);
      END_STATE();
    case 26:
      ACCEPT_TOKEN(anon_sym_is);
      if (lookahead == 'n') ADVANCE(47);
      END_STATE();
    case 27:
      if (lookahead == 't') ADVANCE(48);
      END_STATE();
    case 28:
      if (lookahead == 't') ADVANCE(49);
      END_STATE();
    case 29:
      ACCEPT_TOKEN(anon_sym_or);
      END_STATE();
    case 30:
      if (lookahead == 'p') ADVANCE(50);
      END_STATE();
    case 31:
      if (lookahead == 'w') ADVANCE(51);
      END_STATE();
    case 32:
      if (lookahead == 't') ADVANCE(52);
      END_STATE();
    case 33:
      if (lookahead == 't') ADVANCE(53);
      if (lookahead == 'x') ADVANCE(54);
      END_STATE();
    case 34:
      if (lookahead == 'p') ADVANCE(55);
      END_STATE();
    case 35:
      if (lookahead == 'i') ADVANCE(56);
      if (lookahead == 'l') ADVANCE(57);
      END_STATE();
    case 36:
      if (lookahead == 'r') ADVANCE(58);
      END_STATE();
    case 37:
      if (lookahead == 'e') ADVANCE(59);
      if (lookahead == 'i') ADVANCE(60);
      END_STATE();
    case 38:
      if (lookahead == 'x') ADVANCE(61);
      END_STATE();
    case 39:
      ACCEPT_TOKEN(anon_sym_and);
      END_STATE();
    case 40:
      if (lookahead == 'a') ADVANCE(62);
      END_STATE();
    case 41:
      if (lookahead == 'b') ADVANCE(63);
      if (lookahead == 'p') ADVANCE(64);
      END_STATE();
    case 42:
      if (lookahead == 's') ADVANCE(65);
      if (lookahead == 't') ADVANCE(66);
      END_STATE();
    case 43:
      if (lookahead == 'f') ADVANCE(67);
      END_STATE();
    case 44:
      if (lookahead == 'e') ADVANCE(68);
      END_STATE();
    case 45:
      ACCEPT_TOKEN(anon_sym_for);
      END_STATE();
    case 46:
      if (lookahead == 'l') ADVANCE(69);
      END_STATE();
    case 47:
      if (lookahead == 'o') ADVANCE(70);
      END_STATE();
    case 48:
      ACCEPT_TOKEN(anon_sym_let);
      END_STATE();
    case 49:
      ACCEPT_TOKEN(anon_sym_mut);
      END_STATE();
    case 50:
      if (lookahead == 'e') ADVANCE(71);
      END_STATE();
    case 51:
      ACCEPT_TOKEN(anon_sym_raw);
      END_STATE();
    case 52:
      if (lookahead == 'u') ADVANCE(72);
      END_STATE();
    case 53:
      ACCEPT_TOKEN(anon_sym_set);
      END_STATE();
    case 54:
      if (lookahead == 't') ADVANCE(73);
      END_STATE();
    case 55:
      if (lookahead == 'e') ADVANCE(74);
      END_STATE();
    case 56:
      if (lookahead == 'q') ADVANCE(75);
      END_STATE();
    case 57:
      if (lookahead == 'e') ADVANCE(76);
      END_STATE();
    case 58:
      ACCEPT_TOKEN(anon_sym_var);
      END_STATE();
    case 59:
      if (lookahead == 'n') ADVANCE(77);
      END_STATE();
    case 60:
      if (lookahead == 'l') ADVANCE(78);
      END_STATE();
    case 61:
      if (lookahead == 't') ADVANCE(79);
      END_STATE();
    case 62:
      if (lookahead == 'k') ADVANCE(80);
      END_STATE();
    case 63:
      ACCEPT_TOKEN(anon_sym_comb);
      END_STATE();
    case 64:
      if (lookahead == 't') ADVANCE(81);
      END_STATE();
    case 65:
      if (lookahead == 't') ADVANCE(82);
      END_STATE();
    case 66:
      if (lookahead == 'i') ADVANCE(83);
      END_STATE();
    case 67:
      ACCEPT_TOKEN(anon_sym_elif);
      END_STATE();
    case 68:
      ACCEPT_TOKEN(anon_sym_else);
      END_STATE();
    case 69:
      if (lookahead == 'i') ADVANCE(84);
      END_STATE();
    case 70:
      if (lookahead == 't') ADVANCE(85);
      END_STATE();
    case 71:
      ACCEPT_TOKEN(anon_sym_pipe);
      END_STATE();
    case 72:
      if (lookahead == 'r') ADVANCE(86);
      END_STATE();
    case 73:
      ACCEPT_TOKEN(anon_sym_sext);
      END_STATE();
    case 74:
      ACCEPT_TOKEN(anon_sym_type);
      END_STATE();
    case 75:
      if (lookahead == 'u') ADVANCE(87);
      END_STATE();
    case 76:
      if (lookahead == 's') ADVANCE(88);
      END_STATE();
    case 77:
      ACCEPT_TOKEN(anon_sym_when);
      END_STATE();
    case 78:
      if (lookahead == 'e') ADVANCE(89);
      END_STATE();
    case 79:
      ACCEPT_TOKEN(anon_sym_zext);
      END_STATE();
    case 80:
      ACCEPT_TOKEN(anon_sym_break);
      END_STATE();
    case 81:
      if (lookahead == 'i') ADVANCE(90);
      END_STATE();
    case 82:
      if (lookahead == 'r') ADVANCE(91);
      END_STATE();
    case 83:
      if (lookahead == 'n') ADVANCE(92);
      END_STATE();
    case 84:
      if (lookahead == 'e') ADVANCE(93);
      END_STATE();
    case 85:
      ACCEPT_TOKEN(anon_sym_isnot);
      END_STATE();
    case 86:
      if (lookahead == 'n') ADVANCE(94);
      END_STATE();
    case 87:
      if (lookahead == 'e') ADVANCE(95);
      END_STATE();
    case 88:
      if (lookahead == 's') ADVANCE(96);
      END_STATE();
    case 89:
      ACCEPT_TOKEN(anon_sym_while);
      END_STATE();
    case 90:
      if (lookahead == 'm') ADVANCE(97);
      END_STATE();
    case 91:
      if (lookahead == 'a') ADVANCE(98);
      END_STATE();
    case 92:
      if (lookahead == 'u') ADVANCE(99);
      END_STATE();
    case 93:
      if (lookahead == 's') ADVANCE(100);
      END_STATE();
    case 94:
      ACCEPT_TOKEN(anon_sym_return);
      END_STATE();
    case 95:
      ACCEPT_TOKEN(anon_sym_unique);
      END_STATE();
    case 96:
      ACCEPT_TOKEN(anon_sym_unless);
      END_STATE();
    case 97:
      if (lookahead == 'e') ADVANCE(101);
      END_STATE();
    case 98:
      if (lookahead == 'i') ADVANCE(102);
      END_STATE();
    case 99:
      if (lookahead == 'e') ADVANCE(103);
      END_STATE();
    case 100:
      ACCEPT_TOKEN(anon_sym_implies);
      END_STATE();
    case 101:
      ACCEPT_TOKEN(anon_sym_comptime);
      END_STATE();
    case 102:
      if (lookahead == 'n') ADVANCE(104);
      END_STATE();
    case 103:
      ACCEPT_TOKEN(anon_sym_continue);
      END_STATE();
    case 104:
      ACCEPT_TOKEN(anon_sym_constrain);
      END_STATE();
    default:
      return false;
  }
}

static TSLexMode ts_lex_modes[STATE_COUNT] = {
  [0] = {.lex_state = 0},
  [1] = {.lex_state = 44},
  [2] = {.lex_state = 7},
  [3] = {.lex_state = 7},
  [4] = {.lex_state = 7},
  [5] = {.lex_state = 7},
  [6] = {.lex_state = 7},
  [7] = {.lex_state = 7},
  [8] = {.lex_state = 7},
  [9] = {.lex_state = 7},
  [10] = {.lex_state = 7},
  [11] = {.lex_state = 7},
  [12] = {.lex_state = 43},
  [13] = {.lex_state = 43},
  [14] = {.lex_state = 43},
  [15] = {.lex_state = 7},
  [16] = {.lex_state = 7},
  [17] = {.lex_state = 7},
  [18] = {.lex_state = 44},
  [19] = {.lex_state = 44},
  [20] = {.lex_state = 44},
  [21] = {.lex_state = 44},
  [22] = {.lex_state = 44},
  [23] = {.lex_state = 7},
  [24] = {.lex_state = 44},
  [25] = {.lex_state = 43},
  [26] = {.lex_state = 2},
  [27] = {.lex_state = 43},
  [28] = {.lex_state = 43},
  [29] = {.lex_state = 43},
  [30] = {.lex_state = 43},
  [31] = {.lex_state = 2},
  [32] = {.lex_state = 44},
  [33] = {.lex_state = 43},
  [34] = {.lex_state = 43},
  [35] = {.lex_state = 44},
  [36] = {.lex_state = 43},
  [37] = {.lex_state = 43},
  [38] = {.lex_state = 43},
  [39] = {.lex_state = 43},
  [40] = {.lex_state = 43},
  [41] = {.lex_state = 43},
  [42] = {.lex_state = 43},
  [43] = {.lex_state = 43},
  [44] = {.lex_state = 43},
  [45] = {.lex_state = 6},
  [46] = {.lex_state = 6},
  [47] = {.lex_state = 6},
  [48] = {.lex_state = 6},
  [49] = {.lex_state = 6},
  [50] = {.lex_state = 6},
  [51] = {.lex_state = 6},
  [52] = {.lex_state = 6},
  [53] = {.lex_state = 6},
  [54] = {.lex_state = 6},
  [55] = {.lex_state = 6},
  [56] = {.lex_state = 6},
  [57] = {.lex_state = 6},
  [58] = {.lex_state = 6},
  [59] = {.lex_state = 44},
  [60] = {.lex_state = 6},
  [61] = {.lex_state = 6},
  [62] = {.lex_state = 44},
  [63] = {.lex_state = 6},
  [64] = {.lex_state = 44},
  [65] = {.lex_state = 6},
  [66] = {.lex_state = 6},
  [67] = {.lex_state = 6},
  [68] = {.lex_state = 44},
  [69] = {.lex_state = 6},
  [70] = {.lex_state = 44},
  [71] = {.lex_state = 44},
  [72] = {.lex_state = 44},
  [73] = {.lex_state = 6},
  [74] = {.lex_state = 6},
  [75] = {.lex_state = 6},
  [76] = {.lex_state = 44},
  [77] = {.lex_state = 43},
  [78] = {.lex_state = 44},
  [79] = {.lex_state = 43},
  [80] = {.lex_state = 44},
  [81] = {.lex_state = 44},
  [82] = {.lex_state = 44},
  [83] = {.lex_state = 44},
  [84] = {.lex_state = 44},
  [85] = {.lex_state = 43},
  [86] = {.lex_state = 6},
  [87] = {.lex_state = 43},
  [88] = {.lex_state = 6},
  [89] = {.lex_state = 43},
  [90] = {.lex_state = 43},
  [91] = {.lex_state = 43},
  [92] = {.lex_state = 43},
  [93] = {.lex_state = 43},
  [94] = {.lex_state = 43},
  [95] = {.lex_state = 44},
  [96] = {.lex_state = 44},
  [97] = {.lex_state = 44},
  [98] = {.lex_state = 44},
  [99] = {.lex_state = 44},
  [100] = {.lex_state = 44},
  [101] = {.lex_state = 43},
  [102] = {.lex_state = 44},
  [103] = {.lex_state = 9},
  [104] = {.lex_state = 44},
  [105] = {.lex_state = 43},
  [106] = {.lex_state = 44},
  [107] = {.lex_state = 44},
  [108] = {.lex_state = 43},
  [109] = {.lex_state = 43},
  [110] = {.lex_state = 44},
  [111] = {.lex_state = 43},
  [112] = {.lex_state = 43},
  [113] = {.lex_state = 43},
  [114] = {.lex_state = 43},
  [115] = {.lex_state = 43},
  [116] = {.lex_state = 43},
  [117] = {.lex_state = 43},
  [118] = {.lex_state = 43},
  [119] = {.lex_state = 43},
  [120] = {.lex_state = 43},
  [121] = {.lex_state = 43},
  [122] = {.lex_state = 43},
  [123] = {.lex_state = 43},
  [124] = {.lex_state = 43},
  [125] = {.lex_state = 43},
  [126] = {.lex_state = 9},
  [127] = {.lex_state = 44},
  [128] = {.lex_state = 44},
  [129] = {.lex_state = 44},
  [130] = {.lex_state = 44},
  [131] = {.lex_state = 44},
  [132] = {.lex_state = 43},
  [133] = {.lex_state = 43},
  [134] = {.lex_state = 43},
  [135] = {.lex_state = 43},
  [136] = {.lex_state = 43},
  [137] = {.lex_state = 43},
  [138] = {.lex_state = 43},
  [139] = {.lex_state = 44},
  [140] = {.lex_state = 43},
  [141] = {.lex_state = 0},
  [142] = {.lex_state = 44},
  [143] = {.lex_state = 0},
  [144] = {.lex_state = 0},
  [145] = {.lex_state = 44},
  [146] = {.lex_state = 43},
  [147] = {.lex_state = 0},
  [148] = {.lex_state = 43},
  [149] = {.lex_state = 43},
  [150] = {.lex_state = 44},
  [151] = {.lex_state = 44},
  [152] = {.lex_state = 44},
  [153] = {.lex_state = 0},
  [154] = {.lex_state = 5},
  [155] = {.lex_state = 0},
  [156] = {.lex_state = 0},
  [157] = {.lex_state = 43},
  [158] = {.lex_state = 43},
  [159] = {.lex_state = 44},
  [160] = {.lex_state = 5},
  [161] = {.lex_state = 44},
  [162] = {.lex_state = 5},
  [163] = {.lex_state = 5},
  [164] = {.lex_state = 43},
  [165] = {.lex_state = 5},
  [166] = {.lex_state = 43},
  [167] = {.lex_state = 43},
  [168] = {.lex_state = 43},
  [169] = {.lex_state = 43},
  [170] = {.lex_state = 43},
  [171] = {.lex_state = 0},
  [172] = {.lex_state = 0},
  [173] = {.lex_state = 43},
  [174] = {.lex_state = 43},
  [175] = {.lex_state = 0},
  [176] = {.lex_state = 43},
  [177] = {.lex_state = 43},
  [178] = {.lex_state = 43},
  [179] = {.lex_state = 43},
  [180] = {.lex_state = 43},
  [181] = {.lex_state = 0},
  [182] = {.lex_state = 0},
  [183] = {.lex_state = 43},
  [184] = {.lex_state = 0},
  [185] = {.lex_state = 0},
  [186] = {.lex_state = 0},
  [187] = {.lex_state = 0},
  [188] = {.lex_state = 0},
  [189] = {.lex_state = 0},
  [190] = {.lex_state = 44},
  [191] = {.lex_state = 0},
  [192] = {.lex_state = 0},
  [193] = {.lex_state = 44},
  [194] = {.lex_state = 0},
  [195] = {.lex_state = 0},
  [196] = {.lex_state = 0},
  [197] = {.lex_state = 44},
  [198] = {.lex_state = 0},
  [199] = {.lex_state = 0},
  [200] = {.lex_state = 0},
  [201] = {.lex_state = 0},
  [202] = {.lex_state = 0},
  [203] = {.lex_state = 0},
  [204] = {.lex_state = 0},
  [205] = {.lex_state = 0},
  [206] = {.lex_state = 0},
  [207] = {.lex_state = 0},
  [208] = {.lex_state = 0},
  [209] = {.lex_state = 0},
  [210] = {.lex_state = 0},
  [211] = {.lex_state = 0},
  [212] = {.lex_state = 0},
  [213] = {.lex_state = 0},
  [214] = {.lex_state = 44},
  [215] = {.lex_state = 0},
  [216] = {.lex_state = 0},
  [217] = {.lex_state = 0},
  [218] = {.lex_state = 0},
  [219] = {.lex_state = 0},
  [220] = {.lex_state = 0},
  [221] = {.lex_state = 0},
  [222] = {.lex_state = 0},
  [223] = {.lex_state = 0},
  [224] = {.lex_state = 0},
  [225] = {.lex_state = 44},
  [226] = {.lex_state = 44},
  [227] = {.lex_state = 0},
  [228] = {.lex_state = 0},
  [229] = {.lex_state = 0},
  [230] = {.lex_state = 44},
  [231] = {.lex_state = 0},
  [232] = {.lex_state = 44},
  [233] = {.lex_state = 44},
  [234] = {.lex_state = 0},
  [235] = {.lex_state = 44},
  [236] = {.lex_state = 44},
  [237] = {.lex_state = 0},
  [238] = {.lex_state = 44},
  [239] = {.lex_state = 44},
  [240] = {.lex_state = 44},
  [241] = {.lex_state = 44},
  [242] = {.lex_state = 0},
  [243] = {.lex_state = 44},
};

static uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
  [0] = {
    [ts_builtin_sym_end] = ACTIONS(1),
    [sym_identifier] = ACTIONS(1),
    [anon_sym_when] = ACTIONS(1),
    [anon_sym_unless] = ACTIONS(1),
    [anon_sym_unique] = ACTIONS(1),
    [anon_sym_if] = ACTIONS(1),
    [anon_sym_comptime] = ACTIONS(1),
    [anon_sym_elif] = ACTIONS(1),
    [anon_sym_else] = ACTIONS(1),
    [anon_sym_while] = ACTIONS(1),
    [anon_sym_for] = ACTIONS(1),
    [anon_sym_in] = ACTIONS(1),
    [anon_sym_continue] = ACTIONS(1),
    [anon_sym_break] = ACTIONS(1),
    [anon_sym_return] = ACTIONS(1),
    [anon_sym_let] = ACTIONS(1),
    [anon_sym_mut] = ACTIONS(1),
    [anon_sym_var] = ACTIONS(1),
    [anon_sym_set] = ACTIONS(1),
    [anon_sym_raw] = ACTIONS(1),
    [anon_sym_pipe] = ACTIONS(1),
    [anon_sym_comb] = ACTIONS(1),
    [anon_sym_type] = ACTIONS(1),
    [anon_sym_EQ] = ACTIONS(1),
    [anon_sym_COLON_EQ] = ACTIONS(1),
    [anon_sym_PLUS_EQ] = ACTIONS(1),
    [anon_sym_DASH_EQ] = ACTIONS(1),
    [anon_sym_PLUS_PLUS_EQ] = ACTIONS(1),
    [anon_sym_PIPE_EQ] = ACTIONS(1),
    [anon_sym_AMP_EQ] = ACTIONS(1),
    [anon_sym_CARET_EQ] = ACTIONS(1),
    [anon_sym_STAR_EQ] = ACTIONS(1),
    [anon_sym_SLASH_EQ] = ACTIONS(1),
    [anon_sym_or_EQ] = ACTIONS(1),
    [anon_sym_and_EQ] = ACTIONS(1),
    [anon_sym_LBRACE] = ACTIONS(1),
    [anon_sym_RBRACE] = ACTIONS(1),
    [anon_sym_or] = ACTIONS(1),
    [anon_sym_and] = ACTIONS(1),
    [anon_sym_implies] = ACTIONS(1),
    [anon_sym_is] = ACTIONS(1),
    [anon_sym_isnot] = ACTIONS(1),
    [anon_sym_LT] = ACTIONS(1),
    [anon_sym_LT_EQ] = ACTIONS(1),
    [anon_sym_EQ_EQ] = ACTIONS(1),
    [anon_sym_BANG_EQ] = ACTIONS(1),
    [anon_sym_GT_EQ] = ACTIONS(1),
    [anon_sym_GT] = ACTIONS(1),
    [anon_sym_BANG] = ACTIONS(1),
    [anon_sym_DASH] = ACTIONS(1),
    [anon_sym_TILDE] = ACTIONS(1),
    [anon_sym_LPAREN] = ACTIONS(1),
    [anon_sym_RPAREN] = ACTIONS(1),
    [anon_sym_COLON] = ACTIONS(1),
    [anon_sym_constrain] = ACTIONS(1),
    [anon_sym_PIPE] = ACTIONS(1),
    [anon_sym_COMMA] = ACTIONS(1),
    [anon_sym_DOLLAR] = ACTIONS(1),
    [anon_sym_PERCENT] = ACTIONS(1),
    [anon_sym_POUND] = ACTIONS(1),
    [anon_sym_DOT] = ACTIONS(1),
    [anon_sym_LBRACK] = ACTIONS(1),
    [anon_sym_RBRACK] = ACTIONS(1),
    [anon_sym_AT] = ACTIONS(1),
    [anon_sym_sext] = ACTIONS(1),
    [anon_sym_zext] = ACTIONS(1),
    [anon_sym_AMP] = ACTIONS(1),
    [anon_sym_CARET] = ACTIONS(1),
    [anon_sym_PLUS] = ACTIONS(1),
    [sym_integer] = ACTIONS(1),
    [anon_sym_DQUOTE] = ACTIONS(1),
    [sym__escape_sequence] = ACTIONS(1),
    [aux_sym__newline_token1] = ACTIONS(1),
    [aux_sym__newline_token3] = ACTIONS(1),
    [sym_comment] = ACTIONS(3),
  },
  [1] = {
    [sym_file_top] = STATE(222),
    [sym_stmt] = STATE(21),
    [sym__stmt_itself] = STATE(164),
    [sym_if_stmt] = STATE(164),
    [sym_while_stmt] = STATE(164),
    [sym_for_stmt] = STATE(164),
    [sym_ctrl_stmt] = STATE(164),
    [sym_ass_fcall_stmt] = STATE(164),
    [sym_assign_attribute] = STATE(145),
    [sym_variable_base] = STATE(169),
    [aux_sym_file_top_repeat1] = STATE(21),
    [ts_builtin_sym_end] = ACTIONS(5),
    [sym_identifier] = ACTIONS(7),
    [anon_sym_unique] = ACTIONS(9),
    [anon_sym_if] = ACTIONS(11),
    [anon_sym_while] = ACTIONS(13),
    [anon_sym_for] = ACTIONS(15),
    [anon_sym_continue] = ACTIONS(17),
    [anon_sym_break] = ACTIONS(17),
    [anon_sym_return] = ACTIONS(17),
    [anon_sym_let] = ACTIONS(19),
    [anon_sym_mut] = ACTIONS(19),
    [anon_sym_var] = ACTIONS(19),
    [anon_sym_set] = ACTIONS(19),
    [anon_sym_raw] = ACTIONS(19),
    [anon_sym_DOLLAR] = ACTIONS(21),
    [anon_sym_PERCENT] = ACTIONS(21),
    [anon_sym_POUND] = ACTIONS(21),
    [sym_comment] = ACTIONS(3),
  },
};

static uint16_t ts_small_parse_table[] = {
  [0] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(27), 1,
      anon_sym_DOT,
    ACTIONS(29), 1,
      anon_sym_LBRACK,
    STATE(6), 1,
      aux_sym_variable_base_repeat1,
    ACTIONS(23), 7,
      anon_sym_EQ,
      anon_sym_or,
      anon_sym_and,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
      anon_sym_COLON,
    ACTIONS(25), 24,
      anon_sym_COLON_EQ,
      anon_sym_PLUS_EQ,
      anon_sym_DASH_EQ,
      anon_sym_PLUS_PLUS_EQ,
      anon_sym_PIPE_EQ,
      anon_sym_AMP_EQ,
      anon_sym_CARET_EQ,
      anon_sym_STAR_EQ,
      anon_sym_SLASH_EQ,
      anon_sym_or_EQ,
      anon_sym_and_EQ,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_constrain,
      anon_sym_RBRACK,
      anon_sym_AT,
  [48] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(27), 1,
      anon_sym_DOT,
    ACTIONS(29), 1,
      anon_sym_LBRACK,
    STATE(5), 1,
      aux_sym_variable_base_repeat1,
    ACTIONS(31), 7,
      anon_sym_EQ,
      anon_sym_or,
      anon_sym_and,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
      anon_sym_COLON,
    ACTIONS(33), 24,
      anon_sym_COLON_EQ,
      anon_sym_PLUS_EQ,
      anon_sym_DASH_EQ,
      anon_sym_PLUS_PLUS_EQ,
      anon_sym_PIPE_EQ,
      anon_sym_AMP_EQ,
      anon_sym_CARET_EQ,
      anon_sym_STAR_EQ,
      anon_sym_SLASH_EQ,
      anon_sym_or_EQ,
      anon_sym_and_EQ,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_constrain,
      anon_sym_RBRACK,
      anon_sym_AT,
  [96] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(27), 1,
      anon_sym_DOT,
    ACTIONS(29), 1,
      anon_sym_LBRACK,
    STATE(2), 1,
      aux_sym_variable_base_repeat1,
    ACTIONS(35), 7,
      anon_sym_EQ,
      anon_sym_or,
      anon_sym_and,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
      anon_sym_COLON,
    ACTIONS(37), 24,
      anon_sym_COLON_EQ,
      anon_sym_PLUS_EQ,
      anon_sym_DASH_EQ,
      anon_sym_PLUS_PLUS_EQ,
      anon_sym_PIPE_EQ,
      anon_sym_AMP_EQ,
      anon_sym_CARET_EQ,
      anon_sym_STAR_EQ,
      anon_sym_SLASH_EQ,
      anon_sym_or_EQ,
      anon_sym_and_EQ,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_constrain,
      anon_sym_RBRACK,
      anon_sym_AT,
  [144] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(27), 1,
      anon_sym_DOT,
    ACTIONS(29), 1,
      anon_sym_LBRACK,
    STATE(6), 1,
      aux_sym_variable_base_repeat1,
    ACTIONS(35), 7,
      anon_sym_EQ,
      anon_sym_or,
      anon_sym_and,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
      anon_sym_COLON,
    ACTIONS(37), 24,
      anon_sym_COLON_EQ,
      anon_sym_PLUS_EQ,
      anon_sym_DASH_EQ,
      anon_sym_PLUS_PLUS_EQ,
      anon_sym_PIPE_EQ,
      anon_sym_AMP_EQ,
      anon_sym_CARET_EQ,
      anon_sym_STAR_EQ,
      anon_sym_SLASH_EQ,
      anon_sym_or_EQ,
      anon_sym_and_EQ,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_constrain,
      anon_sym_RBRACK,
      anon_sym_AT,
  [192] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(43), 1,
      anon_sym_DOT,
    ACTIONS(46), 1,
      anon_sym_LBRACK,
    STATE(6), 1,
      aux_sym_variable_base_repeat1,
    ACTIONS(39), 7,
      anon_sym_EQ,
      anon_sym_or,
      anon_sym_and,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
      anon_sym_COLON,
    ACTIONS(41), 24,
      anon_sym_COLON_EQ,
      anon_sym_PLUS_EQ,
      anon_sym_DASH_EQ,
      anon_sym_PLUS_PLUS_EQ,
      anon_sym_PIPE_EQ,
      anon_sym_AMP_EQ,
      anon_sym_CARET_EQ,
      anon_sym_STAR_EQ,
      anon_sym_SLASH_EQ,
      anon_sym_or_EQ,
      anon_sym_and_EQ,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_constrain,
      anon_sym_RBRACK,
      anon_sym_AT,
  [240] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(49), 7,
      anon_sym_EQ,
      anon_sym_or,
      anon_sym_and,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
      anon_sym_COLON,
    ACTIONS(51), 26,
      anon_sym_COLON_EQ,
      anon_sym_PLUS_EQ,
      anon_sym_DASH_EQ,
      anon_sym_PLUS_PLUS_EQ,
      anon_sym_PIPE_EQ,
      anon_sym_AMP_EQ,
      anon_sym_CARET_EQ,
      anon_sym_STAR_EQ,
      anon_sym_SLASH_EQ,
      anon_sym_or_EQ,
      anon_sym_and_EQ,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_constrain,
      anon_sym_DOT,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_AT,
  [281] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(53), 7,
      anon_sym_EQ,
      anon_sym_or,
      anon_sym_and,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
      anon_sym_COLON,
    ACTIONS(55), 26,
      anon_sym_COLON_EQ,
      anon_sym_PLUS_EQ,
      anon_sym_DASH_EQ,
      anon_sym_PLUS_PLUS_EQ,
      anon_sym_PIPE_EQ,
      anon_sym_AMP_EQ,
      anon_sym_CARET_EQ,
      anon_sym_STAR_EQ,
      anon_sym_SLASH_EQ,
      anon_sym_or_EQ,
      anon_sym_and_EQ,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_constrain,
      anon_sym_DOT,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_AT,
  [322] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(57), 7,
      anon_sym_EQ,
      anon_sym_or,
      anon_sym_and,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
      anon_sym_COLON,
    ACTIONS(59), 26,
      anon_sym_COLON_EQ,
      anon_sym_PLUS_EQ,
      anon_sym_DASH_EQ,
      anon_sym_PLUS_PLUS_EQ,
      anon_sym_PIPE_EQ,
      anon_sym_AMP_EQ,
      anon_sym_CARET_EQ,
      anon_sym_STAR_EQ,
      anon_sym_SLASH_EQ,
      anon_sym_or_EQ,
      anon_sym_and_EQ,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_constrain,
      anon_sym_DOT,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_AT,
  [363] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(61), 7,
      anon_sym_EQ,
      anon_sym_or,
      anon_sym_and,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
      anon_sym_COLON,
    ACTIONS(63), 26,
      anon_sym_COLON_EQ,
      anon_sym_PLUS_EQ,
      anon_sym_DASH_EQ,
      anon_sym_PLUS_PLUS_EQ,
      anon_sym_PIPE_EQ,
      anon_sym_AMP_EQ,
      anon_sym_CARET_EQ,
      anon_sym_STAR_EQ,
      anon_sym_SLASH_EQ,
      anon_sym_or_EQ,
      anon_sym_and_EQ,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_constrain,
      anon_sym_DOT,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_AT,
  [404] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(39), 7,
      anon_sym_EQ,
      anon_sym_or,
      anon_sym_and,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
      anon_sym_COLON,
    ACTIONS(41), 26,
      anon_sym_COLON_EQ,
      anon_sym_PLUS_EQ,
      anon_sym_DASH_EQ,
      anon_sym_PLUS_PLUS_EQ,
      anon_sym_PIPE_EQ,
      anon_sym_AMP_EQ,
      anon_sym_CARET_EQ,
      anon_sym_STAR_EQ,
      anon_sym_SLASH_EQ,
      anon_sym_or_EQ,
      anon_sym_and_EQ,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_LPAREN,
      anon_sym_RPAREN,
      anon_sym_constrain,
      anon_sym_DOT,
      anon_sym_LBRACK,
      anon_sym_RBRACK,
      anon_sym_AT,
  [445] = 17,
    ACTIONS(7), 1,
      sym_identifier,
    ACTIONS(9), 1,
      anon_sym_unique,
    ACTIONS(11), 1,
      anon_sym_if,
    ACTIONS(13), 1,
      anon_sym_while,
    ACTIONS(15), 1,
      anon_sym_for,
    ACTIONS(65), 1,
      anon_sym_RBRACE,
    ACTIONS(71), 1,
      aux_sym__newline_token2,
    ACTIONS(73), 1,
      sym_comment,
    STATE(33), 1,
      aux_sym__newline,
    STATE(145), 1,
      sym_assign_attribute,
    STATE(169), 1,
      sym_variable_base,
    ACTIONS(69), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
    STATE(20), 2,
      sym_stmt,
      aux_sym_file_top_repeat1,
    ACTIONS(17), 3,
      anon_sym_continue,
      anon_sym_break,
      anon_sym_return,
    ACTIONS(67), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
    ACTIONS(19), 5,
      anon_sym_let,
      anon_sym_mut,
      anon_sym_var,
      anon_sym_set,
      anon_sym_raw,
    STATE(157), 6,
      sym__stmt_itself,
      sym_if_stmt,
      sym_while_stmt,
      sym_for_stmt,
      sym_ctrl_stmt,
      sym_ass_fcall_stmt,
  [512] = 17,
    ACTIONS(7), 1,
      sym_identifier,
    ACTIONS(9), 1,
      anon_sym_unique,
    ACTIONS(11), 1,
      anon_sym_if,
    ACTIONS(13), 1,
      anon_sym_while,
    ACTIONS(15), 1,
      anon_sym_for,
    ACTIONS(71), 1,
      aux_sym__newline_token2,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(75), 1,
      anon_sym_RBRACE,
    STATE(33), 1,
      aux_sym__newline,
    STATE(145), 1,
      sym_assign_attribute,
    STATE(169), 1,
      sym_variable_base,
    ACTIONS(69), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
    STATE(24), 2,
      sym_stmt,
      aux_sym_file_top_repeat1,
    ACTIONS(17), 3,
      anon_sym_continue,
      anon_sym_break,
      anon_sym_return,
    ACTIONS(67), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
    ACTIONS(19), 5,
      anon_sym_let,
      anon_sym_mut,
      anon_sym_var,
      anon_sym_set,
      anon_sym_raw,
    STATE(157), 6,
      sym__stmt_itself,
      sym_if_stmt,
      sym_while_stmt,
      sym_for_stmt,
      sym_ctrl_stmt,
      sym_ass_fcall_stmt,
  [579] = 17,
    ACTIONS(7), 1,
      sym_identifier,
    ACTIONS(9), 1,
      anon_sym_unique,
    ACTIONS(11), 1,
      anon_sym_if,
    ACTIONS(13), 1,
      anon_sym_while,
    ACTIONS(15), 1,
      anon_sym_for,
    ACTIONS(71), 1,
      aux_sym__newline_token2,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(77), 1,
      anon_sym_RBRACE,
    STATE(33), 1,
      aux_sym__newline,
    STATE(145), 1,
      sym_assign_attribute,
    STATE(169), 1,
      sym_variable_base,
    ACTIONS(69), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
    STATE(22), 2,
      sym_stmt,
      aux_sym_file_top_repeat1,
    ACTIONS(17), 3,
      anon_sym_continue,
      anon_sym_break,
      anon_sym_return,
    ACTIONS(67), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
    ACTIONS(19), 5,
      anon_sym_let,
      anon_sym_mut,
      anon_sym_var,
      anon_sym_set,
      anon_sym_raw,
    STATE(157), 6,
      sym__stmt_itself,
      sym_if_stmt,
      sym_while_stmt,
      sym_for_stmt,
      sym_ctrl_stmt,
      sym_ass_fcall_stmt,
  [646] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(81), 6,
      anon_sym_EQ,
      anon_sym_or,
      anon_sym_and,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(79), 22,
      anon_sym_else,
      anon_sym_COLON_EQ,
      anon_sym_PLUS_EQ,
      anon_sym_DASH_EQ,
      anon_sym_PLUS_PLUS_EQ,
      anon_sym_PIPE_EQ,
      anon_sym_AMP_EQ,
      anon_sym_CARET_EQ,
      anon_sym_STAR_EQ,
      anon_sym_SLASH_EQ,
      anon_sym_or_EQ,
      anon_sym_and_EQ,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [682] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(85), 6,
      anon_sym_EQ,
      anon_sym_or,
      anon_sym_and,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(83), 22,
      anon_sym_else,
      anon_sym_COLON_EQ,
      anon_sym_PLUS_EQ,
      anon_sym_DASH_EQ,
      anon_sym_PLUS_PLUS_EQ,
      anon_sym_PIPE_EQ,
      anon_sym_AMP_EQ,
      anon_sym_CARET_EQ,
      anon_sym_STAR_EQ,
      anon_sym_SLASH_EQ,
      anon_sym_or_EQ,
      anon_sym_and_EQ,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [718] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(91), 1,
      anon_sym_constrain,
    ACTIONS(87), 6,
      anon_sym_EQ,
      anon_sym_or,
      anon_sym_and,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(89), 21,
      anon_sym_COLON_EQ,
      anon_sym_PLUS_EQ,
      anon_sym_DASH_EQ,
      anon_sym_PLUS_PLUS_EQ,
      anon_sym_PIPE_EQ,
      anon_sym_AMP_EQ,
      anon_sym_CARET_EQ,
      anon_sym_STAR_EQ,
      anon_sym_SLASH_EQ,
      anon_sym_or_EQ,
      anon_sym_and_EQ,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [756] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(93), 1,
      ts_builtin_sym_end,
    ACTIONS(95), 1,
      sym_identifier,
    ACTIONS(98), 1,
      anon_sym_unique,
    ACTIONS(101), 1,
      anon_sym_if,
    ACTIONS(104), 1,
      anon_sym_while,
    ACTIONS(107), 1,
      anon_sym_for,
    STATE(145), 1,
      sym_assign_attribute,
    STATE(169), 1,
      sym_variable_base,
    STATE(18), 2,
      sym_stmt,
      aux_sym_file_top_repeat1,
    ACTIONS(110), 3,
      anon_sym_continue,
      anon_sym_break,
      anon_sym_return,
    ACTIONS(116), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
    ACTIONS(113), 5,
      anon_sym_let,
      anon_sym_mut,
      anon_sym_var,
      anon_sym_set,
      anon_sym_raw,
    STATE(164), 6,
      sym__stmt_itself,
      sym_if_stmt,
      sym_while_stmt,
      sym_for_stmt,
      sym_ctrl_stmt,
      sym_ass_fcall_stmt,
  [813] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(93), 1,
      anon_sym_RBRACE,
    ACTIONS(95), 1,
      sym_identifier,
    ACTIONS(98), 1,
      anon_sym_unique,
    ACTIONS(101), 1,
      anon_sym_if,
    ACTIONS(104), 1,
      anon_sym_while,
    ACTIONS(107), 1,
      anon_sym_for,
    STATE(145), 1,
      sym_assign_attribute,
    STATE(169), 1,
      sym_variable_base,
    STATE(19), 2,
      sym_stmt,
      aux_sym_file_top_repeat1,
    ACTIONS(110), 3,
      anon_sym_continue,
      anon_sym_break,
      anon_sym_return,
    ACTIONS(116), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
    ACTIONS(113), 5,
      anon_sym_let,
      anon_sym_mut,
      anon_sym_var,
      anon_sym_set,
      anon_sym_raw,
    STATE(157), 6,
      sym__stmt_itself,
      sym_if_stmt,
      sym_while_stmt,
      sym_for_stmt,
      sym_ctrl_stmt,
      sym_ass_fcall_stmt,
  [870] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      sym_identifier,
    ACTIONS(9), 1,
      anon_sym_unique,
    ACTIONS(11), 1,
      anon_sym_if,
    ACTIONS(13), 1,
      anon_sym_while,
    ACTIONS(15), 1,
      anon_sym_for,
    ACTIONS(119), 1,
      anon_sym_RBRACE,
    STATE(145), 1,
      sym_assign_attribute,
    STATE(169), 1,
      sym_variable_base,
    STATE(19), 2,
      sym_stmt,
      aux_sym_file_top_repeat1,
    ACTIONS(17), 3,
      anon_sym_continue,
      anon_sym_break,
      anon_sym_return,
    ACTIONS(21), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
    ACTIONS(19), 5,
      anon_sym_let,
      anon_sym_mut,
      anon_sym_var,
      anon_sym_set,
      anon_sym_raw,
    STATE(157), 6,
      sym__stmt_itself,
      sym_if_stmt,
      sym_while_stmt,
      sym_for_stmt,
      sym_ctrl_stmt,
      sym_ass_fcall_stmt,
  [927] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      sym_identifier,
    ACTIONS(9), 1,
      anon_sym_unique,
    ACTIONS(11), 1,
      anon_sym_if,
    ACTIONS(13), 1,
      anon_sym_while,
    ACTIONS(15), 1,
      anon_sym_for,
    ACTIONS(121), 1,
      ts_builtin_sym_end,
    STATE(145), 1,
      sym_assign_attribute,
    STATE(169), 1,
      sym_variable_base,
    STATE(18), 2,
      sym_stmt,
      aux_sym_file_top_repeat1,
    ACTIONS(17), 3,
      anon_sym_continue,
      anon_sym_break,
      anon_sym_return,
    ACTIONS(21), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
    ACTIONS(19), 5,
      anon_sym_let,
      anon_sym_mut,
      anon_sym_var,
      anon_sym_set,
      anon_sym_raw,
    STATE(164), 6,
      sym__stmt_itself,
      sym_if_stmt,
      sym_while_stmt,
      sym_for_stmt,
      sym_ctrl_stmt,
      sym_ass_fcall_stmt,
  [984] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      sym_identifier,
    ACTIONS(9), 1,
      anon_sym_unique,
    ACTIONS(11), 1,
      anon_sym_if,
    ACTIONS(13), 1,
      anon_sym_while,
    ACTIONS(15), 1,
      anon_sym_for,
    ACTIONS(123), 1,
      anon_sym_RBRACE,
    STATE(145), 1,
      sym_assign_attribute,
    STATE(169), 1,
      sym_variable_base,
    STATE(19), 2,
      sym_stmt,
      aux_sym_file_top_repeat1,
    ACTIONS(17), 3,
      anon_sym_continue,
      anon_sym_break,
      anon_sym_return,
    ACTIONS(21), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
    ACTIONS(19), 5,
      anon_sym_let,
      anon_sym_mut,
      anon_sym_var,
      anon_sym_set,
      anon_sym_raw,
    STATE(157), 6,
      sym__stmt_itself,
      sym_if_stmt,
      sym_while_stmt,
      sym_for_stmt,
      sym_ctrl_stmt,
      sym_ass_fcall_stmt,
  [1041] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(125), 6,
      anon_sym_EQ,
      anon_sym_or,
      anon_sym_and,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(127), 21,
      anon_sym_COLON_EQ,
      anon_sym_PLUS_EQ,
      anon_sym_DASH_EQ,
      anon_sym_PLUS_PLUS_EQ,
      anon_sym_PIPE_EQ,
      anon_sym_AMP_EQ,
      anon_sym_CARET_EQ,
      anon_sym_STAR_EQ,
      anon_sym_SLASH_EQ,
      anon_sym_or_EQ,
      anon_sym_and_EQ,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [1076] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      sym_identifier,
    ACTIONS(9), 1,
      anon_sym_unique,
    ACTIONS(11), 1,
      anon_sym_if,
    ACTIONS(13), 1,
      anon_sym_while,
    ACTIONS(15), 1,
      anon_sym_for,
    ACTIONS(129), 1,
      anon_sym_RBRACE,
    STATE(145), 1,
      sym_assign_attribute,
    STATE(169), 1,
      sym_variable_base,
    STATE(19), 2,
      sym_stmt,
      aux_sym_file_top_repeat1,
    ACTIONS(17), 3,
      anon_sym_continue,
      anon_sym_break,
      anon_sym_return,
    ACTIONS(21), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
    ACTIONS(19), 5,
      anon_sym_let,
      anon_sym_mut,
      anon_sym_var,
      anon_sym_set,
      anon_sym_raw,
    STATE(157), 6,
      sym__stmt_itself,
      sym_if_stmt,
      sym_while_stmt,
      sym_for_stmt,
      sym_ctrl_stmt,
      sym_ass_fcall_stmt,
  [1133] = 6,
    ACTIONS(25), 1,
      aux_sym__newline_token2,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(131), 1,
      anon_sym_DOT,
    ACTIONS(133), 1,
      anon_sym_LBRACK,
    STATE(29), 1,
      aux_sym_variable_base_repeat1,
    ACTIONS(23), 17,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      anon_sym_LPAREN,
      anon_sym_COLON,
      anon_sym_constrain,
      anon_sym_AT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [1168] = 16,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(135), 1,
      sym_identifier,
    ACTIONS(139), 1,
      anon_sym_LPAREN,
    ACTIONS(141), 1,
      anon_sym_PIPE,
    ACTIONS(145), 1,
      sym_integer,
    ACTIONS(147), 1,
      anon_sym_DQUOTE,
    ACTIONS(151), 1,
      aux_sym__newline_token2,
    STATE(9), 1,
      sym_string,
    STATE(13), 1,
      aux_sym__newline,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(221), 1,
      sym_bool_expr,
    ACTIONS(149), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(137), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(143), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [1223] = 5,
    ACTIONS(71), 1,
      aux_sym__newline_token2,
    ACTIONS(73), 1,
      sym_comment,
    STATE(33), 1,
      aux_sym__newline,
    ACTIONS(69), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
    ACTIONS(153), 17,
      anon_sym_unique,
      anon_sym_if,
      anon_sym_while,
      anon_sym_for,
      anon_sym_continue,
      anon_sym_break,
      anon_sym_return,
      anon_sym_let,
      anon_sym_mut,
      anon_sym_var,
      anon_sym_set,
      anon_sym_raw,
      anon_sym_RBRACE,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
      sym_identifier,
  [1256] = 6,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(155), 1,
      ts_builtin_sym_end,
    ACTIONS(162), 1,
      aux_sym__newline_token2,
    STATE(28), 1,
      aux_sym__newline,
    ACTIONS(159), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
    ACTIONS(157), 16,
      anon_sym_unique,
      anon_sym_if,
      anon_sym_while,
      anon_sym_for,
      anon_sym_continue,
      anon_sym_break,
      anon_sym_return,
      anon_sym_let,
      anon_sym_mut,
      anon_sym_var,
      anon_sym_set,
      anon_sym_raw,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
      sym_identifier,
  [1291] = 6,
    ACTIONS(41), 1,
      aux_sym__newline_token2,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(165), 1,
      anon_sym_DOT,
    ACTIONS(168), 1,
      anon_sym_LBRACK,
    STATE(29), 1,
      aux_sym_variable_base_repeat1,
    ACTIONS(39), 17,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      anon_sym_LPAREN,
      anon_sym_COLON,
      anon_sym_constrain,
      anon_sym_AT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [1326] = 6,
    ACTIONS(33), 1,
      aux_sym__newline_token2,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(131), 1,
      anon_sym_DOT,
    ACTIONS(133), 1,
      anon_sym_LBRACK,
    STATE(36), 1,
      aux_sym_variable_base_repeat1,
    ACTIONS(31), 17,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      anon_sym_LPAREN,
      anon_sym_COLON,
      anon_sym_constrain,
      anon_sym_AT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [1361] = 16,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(135), 1,
      sym_identifier,
    ACTIONS(139), 1,
      anon_sym_LPAREN,
    ACTIONS(141), 1,
      anon_sym_PIPE,
    ACTIONS(145), 1,
      sym_integer,
    ACTIONS(147), 1,
      anon_sym_DQUOTE,
    ACTIONS(173), 1,
      aux_sym__newline_token2,
    STATE(9), 1,
      sym_string,
    STATE(14), 1,
      aux_sym__newline,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(231), 1,
      sym_bool_expr,
    ACTIONS(171), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(137), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(143), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [1416] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(179), 1,
      anon_sym_LPAREN,
    ACTIONS(181), 1,
      anon_sym_COLON,
    ACTIONS(183), 1,
      anon_sym_AT,
    ACTIONS(177), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    STATE(102), 3,
      sym_fcall_args,
      sym_typecase,
      sym_variable_bit_sel,
    ACTIONS(175), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [1453] = 5,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(188), 1,
      aux_sym__newline_token2,
    STATE(33), 1,
      aux_sym__newline,
    ACTIONS(185), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
    ACTIONS(157), 17,
      anon_sym_unique,
      anon_sym_if,
      anon_sym_while,
      anon_sym_for,
      anon_sym_continue,
      anon_sym_break,
      anon_sym_return,
      anon_sym_let,
      anon_sym_mut,
      anon_sym_var,
      anon_sym_set,
      anon_sym_raw,
      anon_sym_RBRACE,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
      sym_identifier,
  [1486] = 6,
    ACTIONS(37), 1,
      aux_sym__newline_token2,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(131), 1,
      anon_sym_DOT,
    ACTIONS(133), 1,
      anon_sym_LBRACK,
    STATE(25), 1,
      aux_sym_variable_base_repeat1,
    ACTIONS(35), 17,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      anon_sym_LPAREN,
      anon_sym_COLON,
      anon_sym_constrain,
      anon_sym_AT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [1521] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(179), 1,
      anon_sym_LPAREN,
    ACTIONS(181), 1,
      anon_sym_COLON,
    ACTIONS(183), 1,
      anon_sym_AT,
    ACTIONS(193), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    STATE(95), 3,
      sym_fcall_args,
      sym_typecase,
      sym_variable_bit_sel,
    ACTIONS(191), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [1558] = 6,
    ACTIONS(37), 1,
      aux_sym__newline_token2,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(131), 1,
      anon_sym_DOT,
    ACTIONS(133), 1,
      anon_sym_LBRACK,
    STATE(29), 1,
      aux_sym_variable_base_repeat1,
    ACTIONS(35), 17,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      anon_sym_LPAREN,
      anon_sym_COLON,
      anon_sym_constrain,
      anon_sym_AT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [1593] = 6,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(195), 1,
      ts_builtin_sym_end,
    ACTIONS(199), 1,
      aux_sym__newline_token2,
    STATE(28), 1,
      aux_sym__newline,
    ACTIONS(197), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
    ACTIONS(153), 16,
      anon_sym_unique,
      anon_sym_if,
      anon_sym_while,
      anon_sym_for,
      anon_sym_continue,
      anon_sym_break,
      anon_sym_return,
      anon_sym_let,
      anon_sym_mut,
      anon_sym_var,
      anon_sym_set,
      anon_sym_raw,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
      sym_identifier,
  [1628] = 3,
    ACTIONS(41), 1,
      aux_sym__newline_token2,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(39), 19,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      anon_sym_LPAREN,
      anon_sym_COLON,
      anon_sym_constrain,
      anon_sym_DOT,
      anon_sym_LBRACK,
      anon_sym_AT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [1656] = 3,
    ACTIONS(59), 1,
      aux_sym__newline_token2,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(57), 19,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      anon_sym_LPAREN,
      anon_sym_COLON,
      anon_sym_constrain,
      anon_sym_DOT,
      anon_sym_LBRACK,
      anon_sym_AT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [1684] = 7,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(175), 1,
      aux_sym__newline_token2,
    ACTIONS(201), 1,
      anon_sym_LPAREN,
    ACTIONS(203), 1,
      anon_sym_COLON,
    ACTIONS(205), 1,
      anon_sym_AT,
    STATE(114), 3,
      sym_fcall_args,
      sym_typecase,
      sym_variable_bit_sel,
    ACTIONS(177), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [1720] = 3,
    ACTIONS(51), 1,
      aux_sym__newline_token2,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(49), 19,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      anon_sym_LPAREN,
      anon_sym_COLON,
      anon_sym_constrain,
      anon_sym_DOT,
      anon_sym_LBRACK,
      anon_sym_AT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [1748] = 7,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(191), 1,
      aux_sym__newline_token2,
    ACTIONS(201), 1,
      anon_sym_LPAREN,
    ACTIONS(203), 1,
      anon_sym_COLON,
    ACTIONS(205), 1,
      anon_sym_AT,
    STATE(123), 3,
      sym_fcall_args,
      sym_typecase,
      sym_variable_bit_sel,
    ACTIONS(193), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [1784] = 3,
    ACTIONS(63), 1,
      aux_sym__newline_token2,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(61), 19,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      anon_sym_LPAREN,
      anon_sym_COLON,
      anon_sym_constrain,
      anon_sym_DOT,
      anon_sym_LBRACK,
      anon_sym_AT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [1812] = 3,
    ACTIONS(55), 1,
      aux_sym__newline_token2,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(53), 19,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      anon_sym_LPAREN,
      anon_sym_COLON,
      anon_sym_constrain,
      anon_sym_DOT,
      anon_sym_LBRACK,
      anon_sym_AT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [1840] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(213), 1,
      anon_sym_RPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(217), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [1888] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(135), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    ACTIONS(223), 1,
      anon_sym_comptime,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(184), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [1936] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    ACTIONS(225), 1,
      anon_sym_RPAREN,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(219), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [1984] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(135), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    ACTIONS(227), 1,
      anon_sym_comptime,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(187), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [2032] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    ACTIONS(229), 1,
      anon_sym_RPAREN,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(218), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [2080] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    ACTIONS(231), 1,
      anon_sym_RPAREN,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(215), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [2128] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(135), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    ACTIONS(233), 1,
      anon_sym_comptime,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(185), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [2176] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    ACTIONS(235), 1,
      anon_sym_RPAREN,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(224), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [2224] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    ACTIONS(237), 1,
      anon_sym_RPAREN,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(234), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [2272] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    ACTIONS(239), 1,
      anon_sym_RPAREN,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(227), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [2320] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(135), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    ACTIONS(241), 1,
      anon_sym_comptime,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(194), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [2368] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    ACTIONS(243), 1,
      anon_sym_RPAREN,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(220), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [2416] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    ACTIONS(245), 1,
      anon_sym_RPAREN,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(242), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [2464] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    ACTIONS(247), 1,
      anon_sym_RPAREN,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(229), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [2512] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(181), 1,
      anon_sym_COLON,
    STATE(99), 1,
      sym_typecase,
    ACTIONS(251), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(249), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [2541] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(205), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [2586] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(211), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [2631] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(181), 1,
      anon_sym_COLON,
    STATE(95), 1,
      sym_typecase,
    ACTIONS(193), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(191), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [2660] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(208), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [2705] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    STATE(84), 1,
      sym_fcall_def,
    ACTIONS(255), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(253), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [2734] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(257), 1,
      sym_identifier,
    ACTIONS(261), 1,
      anon_sym_LPAREN,
    ACTIONS(263), 1,
      anon_sym_PIPE,
    ACTIONS(265), 1,
      sym_integer,
    ACTIONS(267), 1,
      anon_sym_DQUOTE,
    STATE(39), 1,
      sym_string,
    STATE(40), 1,
      sym_variable_base,
    STATE(79), 1,
      sym_factor,
    STATE(176), 1,
      sym_bool_expr,
    STATE(118), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(21), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
    ACTIONS(259), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
  [2779] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(228), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [2824] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(185), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [2869] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(181), 1,
      anon_sym_COLON,
    STATE(107), 1,
      sym_typecase,
    ACTIONS(271), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(269), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [2898] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(216), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [2943] = 5,
    ACTIONS(3), 1,
      sym_comment,
    STATE(76), 2,
      sym_bool_expr_cont,
      aux_sym_bool_expr_repeat1,
    ACTIONS(277), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(273), 4,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
    ACTIONS(275), 8,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
  [2972] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    STATE(82), 1,
      sym_fcall_def,
    ACTIONS(281), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(279), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [3001] = 5,
    ACTIONS(3), 1,
      sym_comment,
    STATE(70), 2,
      sym_bool_expr_cont,
      aux_sym_bool_expr_repeat1,
    ACTIONS(277), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(283), 4,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
    ACTIONS(275), 8,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
  [3030] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(257), 1,
      sym_identifier,
    ACTIONS(261), 1,
      anon_sym_LPAREN,
    ACTIONS(263), 1,
      anon_sym_PIPE,
    ACTIONS(265), 1,
      sym_integer,
    ACTIONS(267), 1,
      anon_sym_DQUOTE,
    STATE(39), 1,
      sym_string,
    STATE(40), 1,
      sym_variable_base,
    STATE(79), 1,
      sym_factor,
    STATE(177), 1,
      sym_bool_expr,
    STATE(118), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(21), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
    ACTIONS(259), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
  [3075] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(207), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [3120] = 13,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(72), 1,
      sym_factor,
    STATE(198), 1,
      sym_bool_expr,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [3165] = 5,
    ACTIONS(3), 1,
      sym_comment,
    STATE(76), 2,
      sym_bool_expr_cont,
      aux_sym_bool_expr_repeat1,
    ACTIONS(290), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(285), 4,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
    ACTIONS(287), 8,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
  [3194] = 5,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(253), 1,
      aux_sym__newline_token2,
    ACTIONS(293), 1,
      anon_sym_PIPE,
    STATE(94), 1,
      sym_fcall_def,
    ACTIONS(255), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [3222] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(297), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(295), 13,
      anon_sym_else,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [3246] = 5,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(283), 1,
      aux_sym__newline_token2,
    ACTIONS(301), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
    STATE(89), 2,
      sym_bool_expr_cont,
      aux_sym_bool_expr_repeat1,
    ACTIONS(299), 11,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
  [3274] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(305), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(303), 13,
      anon_sym_else,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [3298] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(309), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(307), 13,
      anon_sym_else,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [3322] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(311), 1,
      anon_sym_else,
    ACTIONS(315), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(313), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [3348] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(319), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(317), 13,
      anon_sym_else,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [3372] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(321), 1,
      anon_sym_else,
    ACTIONS(281), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(279), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [3398] = 5,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(279), 1,
      aux_sym__newline_token2,
    ACTIONS(293), 1,
      anon_sym_PIPE,
    STATE(111), 1,
      sym_fcall_def,
    ACTIONS(281), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [3426] = 12,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(211), 1,
      anon_sym_LPAREN,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    STATE(9), 1,
      sym_string,
    STATE(32), 1,
      sym_variable_base,
    STATE(98), 1,
      sym_factor,
    STATE(106), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(209), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [3468] = 5,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(191), 1,
      aux_sym__newline_token2,
    ACTIONS(203), 1,
      anon_sym_COLON,
    STATE(123), 1,
      sym_typecase,
    ACTIONS(193), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [3496] = 12,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(257), 1,
      sym_identifier,
    ACTIONS(261), 1,
      anon_sym_LPAREN,
    ACTIONS(263), 1,
      anon_sym_PIPE,
    ACTIONS(265), 1,
      sym_integer,
    ACTIONS(267), 1,
      anon_sym_DQUOTE,
    STATE(39), 1,
      sym_string,
    STATE(40), 1,
      sym_variable_base,
    STATE(121), 1,
      sym_factor,
    STATE(118), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(21), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
    ACTIONS(259), 3,
      anon_sym_BANG,
      anon_sym_DASH,
      anon_sym_TILDE,
  [3538] = 5,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(273), 1,
      aux_sym__newline_token2,
    ACTIONS(323), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
    STATE(91), 2,
      sym_bool_expr_cont,
      aux_sym_bool_expr_repeat1,
    ACTIONS(299), 11,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
  [3566] = 5,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(203), 1,
      anon_sym_COLON,
    ACTIONS(269), 1,
      aux_sym__newline_token2,
    STATE(117), 1,
      sym_typecase,
    ACTIONS(271), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [3594] = 5,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(285), 1,
      aux_sym__newline_token2,
    ACTIONS(328), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
    STATE(91), 2,
      sym_bool_expr_cont,
      aux_sym_bool_expr_repeat1,
    ACTIONS(325), 11,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
  [3622] = 5,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(203), 1,
      anon_sym_COLON,
    ACTIONS(249), 1,
      aux_sym__newline_token2,
    STATE(120), 1,
      sym_typecase,
    ACTIONS(251), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [3650] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(303), 1,
      aux_sym__newline_token2,
    ACTIONS(305), 14,
      anon_sym_else,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [3673] = 4,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(279), 1,
      aux_sym__newline_token2,
    ACTIONS(330), 1,
      anon_sym_else,
    ACTIONS(281), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [3698] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(271), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(269), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [3721] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(334), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(332), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [3744] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(338), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(336), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [3767] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(342), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(340), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [3790] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(346), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(344), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [3813] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(350), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(348), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [3836] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(317), 1,
      aux_sym__newline_token2,
    ACTIONS(319), 14,
      anon_sym_else,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [3859] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(193), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(191), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [3882] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(354), 1,
      anon_sym_COLON,
    STATE(126), 1,
      sym_typecase,
    STATE(168), 1,
      sym_assignment_cont,
    ACTIONS(352), 12,
      anon_sym_EQ,
      anon_sym_COLON_EQ,
      anon_sym_PLUS_EQ,
      anon_sym_DASH_EQ,
      anon_sym_PLUS_PLUS_EQ,
      anon_sym_PIPE_EQ,
      anon_sym_AMP_EQ,
      anon_sym_CARET_EQ,
      anon_sym_STAR_EQ,
      anon_sym_SLASH_EQ,
      anon_sym_or_EQ,
      anon_sym_and_EQ,
  [3909] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(358), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(356), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [3932] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(83), 1,
      aux_sym__newline_token2,
    ACTIONS(85), 14,
      anon_sym_else,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [3955] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(177), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(175), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [3978] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(251), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(249), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [4001] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(295), 1,
      aux_sym__newline_token2,
    ACTIONS(297), 14,
      anon_sym_else,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4024] = 4,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(89), 1,
      aux_sym__newline_token2,
    ACTIONS(360), 1,
      anon_sym_constrain,
    ACTIONS(87), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4049] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(364), 3,
      anon_sym_is,
      anon_sym_LT,
      anon_sym_GT,
    ACTIONS(362), 12,
      anon_sym_LBRACE,
      anon_sym_RBRACE,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_isnot,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_RPAREN,
      anon_sym_RBRACK,
  [4072] = 4,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(313), 1,
      aux_sym__newline_token2,
    ACTIONS(366), 1,
      anon_sym_else,
    ACTIONS(315), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4097] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(79), 1,
      aux_sym__newline_token2,
    ACTIONS(81), 14,
      anon_sym_else,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4120] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(307), 1,
      aux_sym__newline_token2,
    ACTIONS(309), 14,
      anon_sym_else,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4143] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(191), 1,
      aux_sym__newline_token2,
    ACTIONS(193), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4165] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(356), 1,
      aux_sym__newline_token2,
    ACTIONS(358), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4187] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(127), 1,
      aux_sym__newline_token2,
    ACTIONS(125), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4209] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(249), 1,
      aux_sym__newline_token2,
    ACTIONS(251), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4231] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(175), 1,
      aux_sym__newline_token2,
    ACTIONS(177), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4253] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(332), 1,
      aux_sym__newline_token2,
    ACTIONS(334), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4275] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(344), 1,
      aux_sym__newline_token2,
    ACTIONS(346), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4297] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(340), 1,
      aux_sym__newline_token2,
    ACTIONS(342), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4319] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(348), 1,
      aux_sym__newline_token2,
    ACTIONS(350), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4341] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(269), 1,
      aux_sym__newline_token2,
    ACTIONS(271), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4363] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(362), 1,
      aux_sym__newline_token2,
    ACTIONS(364), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4385] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(336), 1,
      aux_sym__newline_token2,
    ACTIONS(338), 13,
      anon_sym_or,
      anon_sym_and,
      anon_sym_implies,
      anon_sym_is,
      anon_sym_isnot,
      anon_sym_LT,
      anon_sym_LT_EQ,
      anon_sym_EQ_EQ,
      anon_sym_BANG_EQ,
      anon_sym_GT_EQ,
      anon_sym_GT,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4407] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(368), 12,
      anon_sym_EQ,
      anon_sym_COLON_EQ,
      anon_sym_PLUS_EQ,
      anon_sym_DASH_EQ,
      anon_sym_PLUS_PLUS_EQ,
      anon_sym_PIPE_EQ,
      anon_sym_AMP_EQ,
      anon_sym_CARET_EQ,
      anon_sym_STAR_EQ,
      anon_sym_SLASH_EQ,
      anon_sym_or_EQ,
      anon_sym_and_EQ,
  [4425] = 10,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    ACTIONS(215), 1,
      anon_sym_PIPE,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    ACTIONS(370), 1,
      anon_sym_LPAREN,
    STATE(9), 1,
      sym_string,
    STATE(35), 1,
      sym_variable_base,
    STATE(102), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [4459] = 10,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(257), 1,
      sym_identifier,
    ACTIONS(263), 1,
      anon_sym_PIPE,
    ACTIONS(265), 1,
      sym_integer,
    ACTIONS(267), 1,
      anon_sym_DQUOTE,
    ACTIONS(372), 1,
      anon_sym_LPAREN,
    STATE(39), 1,
      sym_string,
    STATE(42), 1,
      sym_variable_base,
    STATE(114), 2,
      sym_fcall_def,
      sym_constant,
    ACTIONS(21), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [4493] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(374), 1,
      sym_identifier,
    ACTIONS(376), 2,
      anon_sym_comptime,
      anon_sym_type,
    ACTIONS(378), 2,
      anon_sym_pipe,
      anon_sym_comb,
    ACTIONS(380), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [4513] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(382), 1,
      anon_sym_LPAREN,
    ACTIONS(384), 6,
      anon_sym_PIPE,
      anon_sym_sext,
      anon_sym_zext,
      anon_sym_AMP,
      anon_sym_CARET,
      anon_sym_PLUS,
  [4528] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(386), 1,
      anon_sym_LPAREN,
    ACTIONS(388), 6,
      anon_sym_PIPE,
      anon_sym_sext,
      anon_sym_zext,
      anon_sym_AMP,
      anon_sym_CARET,
      anon_sym_PLUS,
  [4543] = 6,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(390), 1,
      anon_sym_elif,
    ACTIONS(392), 1,
      anon_sym_else,
    ACTIONS(396), 1,
      aux_sym__newline_token2,
    STATE(137), 1,
      aux_sym_if_stmt_repeat1,
    ACTIONS(394), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4563] = 6,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(390), 1,
      anon_sym_elif,
    ACTIONS(398), 1,
      anon_sym_else,
    ACTIONS(402), 1,
      aux_sym__newline_token2,
    STATE(134), 1,
      aux_sym_if_stmt_repeat1,
    ACTIONS(400), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4583] = 5,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(404), 1,
      anon_sym_elif,
    ACTIONS(409), 1,
      aux_sym__newline_token2,
    STATE(134), 1,
      aux_sym_if_stmt_repeat1,
    ACTIONS(407), 3,
      anon_sym_else,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4601] = 6,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(390), 1,
      anon_sym_elif,
    ACTIONS(411), 1,
      anon_sym_else,
    ACTIONS(415), 1,
      aux_sym__newline_token2,
    STATE(133), 1,
      aux_sym_if_stmt_repeat1,
    ACTIONS(413), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4621] = 6,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(390), 1,
      anon_sym_elif,
    ACTIONS(417), 1,
      anon_sym_else,
    ACTIONS(421), 1,
      aux_sym__newline_token2,
    STATE(138), 1,
      aux_sym_if_stmt_repeat1,
    ACTIONS(419), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4641] = 6,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(390), 1,
      anon_sym_elif,
    ACTIONS(417), 1,
      anon_sym_else,
    ACTIONS(421), 1,
      aux_sym__newline_token2,
    STATE(134), 1,
      aux_sym_if_stmt_repeat1,
    ACTIONS(419), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4661] = 6,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(390), 1,
      anon_sym_elif,
    ACTIONS(411), 1,
      anon_sym_else,
    ACTIONS(415), 1,
      aux_sym__newline_token2,
    STATE(134), 1,
      aux_sym_if_stmt_repeat1,
    ACTIONS(413), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4681] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    STATE(17), 1,
      sym_variable_base,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [4696] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(425), 1,
      aux_sym__newline_token2,
    ACTIONS(423), 4,
      anon_sym_elif,
      anon_sym_else,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4709] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(427), 1,
      anon_sym_RPAREN,
    ACTIONS(429), 1,
      anon_sym_COMMA,
    ACTIONS(431), 1,
      anon_sym_DOLLAR,
    STATE(153), 1,
      aux_sym_fcall_def_repeat1,
    STATE(171), 1,
      aux_sym_fcall_def_repeat2,
  [4728] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(265), 1,
      sym_integer,
    ACTIONS(267), 1,
      anon_sym_DQUOTE,
    ACTIONS(433), 1,
      sym_identifier,
    STATE(38), 1,
      sym_constant,
    STATE(39), 1,
      sym_string,
  [4747] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(431), 1,
      anon_sym_DOLLAR,
    ACTIONS(435), 1,
      anon_sym_RPAREN,
    ACTIONS(437), 1,
      anon_sym_COMMA,
    STATE(141), 1,
      aux_sym_fcall_def_repeat1,
    STATE(172), 1,
      aux_sym_fcall_def_repeat2,
  [4766] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(431), 1,
      anon_sym_DOLLAR,
    ACTIONS(439), 1,
      anon_sym_RPAREN,
    ACTIONS(441), 1,
      anon_sym_COMMA,
    STATE(147), 1,
      aux_sym_fcall_def_repeat1,
    STATE(175), 1,
      aux_sym_fcall_def_repeat2,
  [4785] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(207), 1,
      sym_identifier,
    STATE(103), 1,
      sym_variable_base,
    ACTIONS(217), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [4800] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(445), 1,
      aux_sym__newline_token2,
    ACTIONS(443), 4,
      anon_sym_elif,
      anon_sym_else,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4813] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(429), 1,
      anon_sym_COMMA,
    ACTIONS(431), 1,
      anon_sym_DOLLAR,
    ACTIONS(447), 1,
      anon_sym_RPAREN,
    STATE(153), 1,
      aux_sym_fcall_def_repeat1,
    STATE(181), 1,
      aux_sym_fcall_def_repeat2,
  [4832] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(451), 1,
      aux_sym__newline_token2,
    ACTIONS(449), 4,
      anon_sym_elif,
      anon_sym_else,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4845] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(455), 1,
      aux_sym__newline_token2,
    ACTIONS(453), 4,
      anon_sym_elif,
      anon_sym_else,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4858] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(257), 1,
      sym_identifier,
    STATE(109), 1,
      sym_variable_base,
    ACTIONS(21), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [4873] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(457), 1,
      sym_identifier,
    ACTIONS(459), 1,
      anon_sym_comptime,
    ACTIONS(461), 3,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
  [4888] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(219), 1,
      sym_integer,
    ACTIONS(221), 1,
      anon_sym_DQUOTE,
    ACTIONS(463), 1,
      sym_identifier,
    STATE(9), 1,
      sym_string,
    STATE(11), 1,
      sym_constant,
  [4907] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(467), 1,
      anon_sym_COMMA,
    STATE(153), 1,
      aux_sym_fcall_def_repeat1,
    ACTIONS(465), 2,
      anon_sym_RPAREN,
      anon_sym_DOLLAR,
  [4921] = 5,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(470), 1,
      anon_sym_DQUOTE,
    ACTIONS(472), 1,
      aux_sym_string_token1,
    ACTIONS(474), 1,
      sym__escape_sequence,
    STATE(160), 1,
      aux_sym_string_repeat1,
  [4937] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(429), 1,
      anon_sym_COMMA,
    STATE(153), 1,
      aux_sym_fcall_def_repeat1,
    ACTIONS(476), 2,
      anon_sym_RPAREN,
      anon_sym_DOLLAR,
  [4951] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(480), 1,
      anon_sym_COMMA,
    STATE(155), 1,
      aux_sym_fcall_def_repeat1,
    ACTIONS(478), 2,
      anon_sym_RPAREN,
      anon_sym_DOLLAR,
  [4965] = 4,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(484), 1,
      aux_sym__newline_token2,
    STATE(27), 1,
      aux_sym__newline,
    ACTIONS(482), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4979] = 4,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(488), 1,
      aux_sym__newline_token2,
    STATE(12), 1,
      aux_sym__newline,
    ACTIONS(486), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [4993] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(461), 4,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
      sym_identifier,
  [5003] = 5,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(490), 1,
      anon_sym_DQUOTE,
    ACTIONS(492), 1,
      aux_sym_string_token1,
    ACTIONS(494), 1,
      sym__escape_sequence,
    STATE(165), 1,
      aux_sym_string_repeat1,
  [5019] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(496), 4,
      anon_sym_DOLLAR,
      anon_sym_PERCENT,
      anon_sym_POUND,
      sym_identifier,
  [5029] = 5,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(498), 1,
      anon_sym_DQUOTE,
    ACTIONS(500), 1,
      aux_sym_string_token1,
    ACTIONS(502), 1,
      sym__escape_sequence,
    STATE(163), 1,
      aux_sym_string_repeat1,
  [5045] = 5,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(492), 1,
      aux_sym_string_token1,
    ACTIONS(494), 1,
      sym__escape_sequence,
    ACTIONS(504), 1,
      anon_sym_DQUOTE,
    STATE(165), 1,
      aux_sym_string_repeat1,
  [5061] = 4,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(508), 1,
      aux_sym__newline_token2,
    STATE(37), 1,
      aux_sym__newline,
    ACTIONS(506), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [5075] = 5,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(510), 1,
      anon_sym_DQUOTE,
    ACTIONS(512), 1,
      aux_sym_string_token1,
    ACTIONS(515), 1,
      sym__escape_sequence,
    STATE(165), 1,
      aux_sym_string_repeat1,
  [5091] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(415), 1,
      aux_sym__newline_token2,
    ACTIONS(413), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [5102] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(520), 1,
      aux_sym__newline_token2,
    ACTIONS(518), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [5113] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(524), 1,
      aux_sym__newline_token2,
    ACTIONS(522), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [5124] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(528), 1,
      aux_sym__newline_token2,
    ACTIONS(526), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [5135] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(532), 1,
      aux_sym__newline_token2,
    ACTIONS(530), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [5146] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(431), 1,
      anon_sym_DOLLAR,
    ACTIONS(534), 1,
      anon_sym_RPAREN,
    STATE(182), 1,
      aux_sym_fcall_def_repeat2,
  [5159] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(427), 1,
      anon_sym_RPAREN,
    ACTIONS(431), 1,
      anon_sym_DOLLAR,
    STATE(182), 1,
      aux_sym_fcall_def_repeat2,
  [5172] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(538), 1,
      aux_sym__newline_token2,
    ACTIONS(536), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [5183] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(542), 1,
      aux_sym__newline_token2,
    ACTIONS(540), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [5194] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(431), 1,
      anon_sym_DOLLAR,
    ACTIONS(447), 1,
      anon_sym_RPAREN,
    STATE(182), 1,
      aux_sym_fcall_def_repeat2,
  [5207] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(546), 1,
      aux_sym__newline_token2,
    ACTIONS(544), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [5218] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(550), 1,
      aux_sym__newline_token2,
    ACTIONS(548), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [5229] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(554), 1,
      aux_sym__newline_token2,
    ACTIONS(552), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [5240] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(558), 1,
      aux_sym__newline_token2,
    ACTIONS(556), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [5251] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(562), 1,
      aux_sym__newline_token2,
    ACTIONS(560), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [5262] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(431), 1,
      anon_sym_DOLLAR,
    ACTIONS(564), 1,
      anon_sym_RPAREN,
    STATE(182), 1,
      aux_sym_fcall_def_repeat2,
  [5275] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(478), 1,
      anon_sym_RPAREN,
    ACTIONS(566), 1,
      anon_sym_DOLLAR,
    STATE(182), 1,
      aux_sym_fcall_def_repeat2,
  [5288] = 3,
    ACTIONS(73), 1,
      sym_comment,
    ACTIONS(402), 1,
      aux_sym__newline_token2,
    ACTIONS(400), 2,
      aux_sym__newline_token1,
      aux_sym__newline_token3,
  [5299] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(569), 1,
      anon_sym_LBRACE,
    STATE(132), 1,
      sym_new_scope,
  [5309] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(569), 1,
      anon_sym_LBRACE,
    STATE(136), 1,
      sym_new_scope,
  [5319] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(571), 1,
      anon_sym_LBRACE,
    STATE(83), 1,
      sym_new_fun_scope,
  [5329] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(569), 1,
      anon_sym_LBRACE,
    STATE(173), 1,
      sym_new_scope,
  [5339] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(571), 1,
      anon_sym_LBRACE,
    STATE(23), 1,
      sym_new_fun_scope,
  [5349] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(573), 1,
      anon_sym_LBRACE,
    STATE(108), 1,
      sym_new_fun_scope,
  [5359] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(575), 1,
      anon_sym_LPAREN,
    ACTIONS(577), 1,
      anon_sym_PIPE,
  [5369] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(573), 1,
      anon_sym_LBRACE,
    STATE(122), 1,
      sym_new_fun_scope,
  [5379] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(571), 1,
      anon_sym_LBRACE,
    STATE(100), 1,
      sym_new_fun_scope,
  [5389] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(579), 1,
      anon_sym_LPAREN,
    ACTIONS(581), 1,
      anon_sym_PIPE,
  [5399] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(569), 1,
      anon_sym_LBRACE,
    STATE(148), 1,
      sym_new_scope,
  [5409] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(569), 1,
      anon_sym_LBRACE,
    STATE(170), 1,
      sym_new_scope,
  [5419] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(573), 1,
      anon_sym_LBRACE,
    STATE(101), 1,
      sym_new_fun_scope,
  [5429] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(583), 1,
      sym_identifier,
    ACTIONS(585), 1,
      anon_sym_comptime,
  [5439] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(569), 1,
      anon_sym_LBRACE,
    STATE(178), 1,
      sym_new_scope,
  [5449] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(569), 1,
      anon_sym_LBRACE,
    STATE(166), 1,
      sym_new_scope,
  [5459] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(573), 1,
      anon_sym_LBRACE,
    STATE(124), 1,
      sym_new_fun_scope,
  [5469] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(571), 1,
      anon_sym_LBRACE,
    STATE(78), 1,
      sym_new_fun_scope,
  [5479] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(571), 1,
      anon_sym_LBRACE,
    STATE(81), 1,
      sym_new_fun_scope,
  [5489] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(569), 1,
      anon_sym_LBRACE,
    STATE(183), 1,
      sym_new_scope,
  [5499] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(571), 1,
      anon_sym_LBRACE,
    STATE(80), 1,
      sym_new_fun_scope,
  [5509] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(569), 1,
      anon_sym_LBRACE,
    STATE(180), 1,
      sym_new_scope,
  [5519] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(569), 1,
      anon_sym_LBRACE,
    STATE(179), 1,
      sym_new_scope,
  [5529] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(569), 1,
      anon_sym_LBRACE,
    STATE(135), 1,
      sym_new_scope,
  [5539] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(569), 1,
      anon_sym_LBRACE,
    STATE(174), 1,
      sym_new_scope,
  [5549] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(573), 1,
      anon_sym_LBRACE,
    STATE(93), 1,
      sym_new_fun_scope,
  [5559] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(571), 1,
      anon_sym_LBRACE,
    STATE(110), 1,
      sym_new_fun_scope,
  [5569] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(569), 1,
      anon_sym_LBRACE,
    STATE(149), 1,
      sym_new_scope,
  [5579] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(573), 1,
      anon_sym_LBRACE,
    STATE(113), 1,
      sym_new_fun_scope,
  [5589] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(573), 1,
      anon_sym_LBRACE,
    STATE(116), 1,
      sym_new_fun_scope,
  [5599] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(587), 1,
      sym_identifier,
  [5606] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(589), 1,
      anon_sym_RPAREN,
  [5613] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(591), 1,
      anon_sym_RBRACK,
  [5620] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(593), 1,
      anon_sym_RPAREN,
  [5627] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(595), 1,
      anon_sym_RPAREN,
  [5634] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(597), 1,
      anon_sym_RPAREN,
  [5641] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(213), 1,
      anon_sym_RPAREN,
  [5648] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(599), 1,
      anon_sym_RBRACE,
  [5655] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(601), 1,
      ts_builtin_sym_end,
  [5662] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(603), 1,
      anon_sym_LPAREN,
  [5669] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(247), 1,
      anon_sym_RPAREN,
  [5676] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(605), 1,
      sym_identifier,
  [5683] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(607), 1,
      sym_identifier,
  [5690] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(609), 1,
      anon_sym_RPAREN,
  [5697] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(611), 1,
      anon_sym_RBRACK,
  [5704] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(613), 1,
      anon_sym_RPAREN,
  [5711] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(615), 1,
      anon_sym_PIPE,
  [5718] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(617), 1,
      anon_sym_RBRACE,
  [5725] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(619), 1,
      anon_sym_PIPE,
  [5732] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(621), 1,
      anon_sym_if,
  [5739] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_RPAREN,
  [5746] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(623), 1,
      anon_sym_PIPE,
  [5753] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(625), 1,
      anon_sym_in,
  [5760] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(627), 1,
      anon_sym_LPAREN,
  [5767] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(629), 1,
      anon_sym_PIPE,
  [5774] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(631), 1,
      anon_sym_PIPE,
  [5781] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(633), 1,
      anon_sym_PIPE,
  [5788] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(635), 1,
      sym_identifier,
  [5795] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(225), 1,
      anon_sym_RPAREN,
  [5802] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(637), 1,
      anon_sym_in,
};

static uint32_t ts_small_parse_table_map[] = {
  [SMALL_STATE(2)] = 0,
  [SMALL_STATE(3)] = 48,
  [SMALL_STATE(4)] = 96,
  [SMALL_STATE(5)] = 144,
  [SMALL_STATE(6)] = 192,
  [SMALL_STATE(7)] = 240,
  [SMALL_STATE(8)] = 281,
  [SMALL_STATE(9)] = 322,
  [SMALL_STATE(10)] = 363,
  [SMALL_STATE(11)] = 404,
  [SMALL_STATE(12)] = 445,
  [SMALL_STATE(13)] = 512,
  [SMALL_STATE(14)] = 579,
  [SMALL_STATE(15)] = 646,
  [SMALL_STATE(16)] = 682,
  [SMALL_STATE(17)] = 718,
  [SMALL_STATE(18)] = 756,
  [SMALL_STATE(19)] = 813,
  [SMALL_STATE(20)] = 870,
  [SMALL_STATE(21)] = 927,
  [SMALL_STATE(22)] = 984,
  [SMALL_STATE(23)] = 1041,
  [SMALL_STATE(24)] = 1076,
  [SMALL_STATE(25)] = 1133,
  [SMALL_STATE(26)] = 1168,
  [SMALL_STATE(27)] = 1223,
  [SMALL_STATE(28)] = 1256,
  [SMALL_STATE(29)] = 1291,
  [SMALL_STATE(30)] = 1326,
  [SMALL_STATE(31)] = 1361,
  [SMALL_STATE(32)] = 1416,
  [SMALL_STATE(33)] = 1453,
  [SMALL_STATE(34)] = 1486,
  [SMALL_STATE(35)] = 1521,
  [SMALL_STATE(36)] = 1558,
  [SMALL_STATE(37)] = 1593,
  [SMALL_STATE(38)] = 1628,
  [SMALL_STATE(39)] = 1656,
  [SMALL_STATE(40)] = 1684,
  [SMALL_STATE(41)] = 1720,
  [SMALL_STATE(42)] = 1748,
  [SMALL_STATE(43)] = 1784,
  [SMALL_STATE(44)] = 1812,
  [SMALL_STATE(45)] = 1840,
  [SMALL_STATE(46)] = 1888,
  [SMALL_STATE(47)] = 1936,
  [SMALL_STATE(48)] = 1984,
  [SMALL_STATE(49)] = 2032,
  [SMALL_STATE(50)] = 2080,
  [SMALL_STATE(51)] = 2128,
  [SMALL_STATE(52)] = 2176,
  [SMALL_STATE(53)] = 2224,
  [SMALL_STATE(54)] = 2272,
  [SMALL_STATE(55)] = 2320,
  [SMALL_STATE(56)] = 2368,
  [SMALL_STATE(57)] = 2416,
  [SMALL_STATE(58)] = 2464,
  [SMALL_STATE(59)] = 2512,
  [SMALL_STATE(60)] = 2541,
  [SMALL_STATE(61)] = 2586,
  [SMALL_STATE(62)] = 2631,
  [SMALL_STATE(63)] = 2660,
  [SMALL_STATE(64)] = 2705,
  [SMALL_STATE(65)] = 2734,
  [SMALL_STATE(66)] = 2779,
  [SMALL_STATE(67)] = 2824,
  [SMALL_STATE(68)] = 2869,
  [SMALL_STATE(69)] = 2898,
  [SMALL_STATE(70)] = 2943,
  [SMALL_STATE(71)] = 2972,
  [SMALL_STATE(72)] = 3001,
  [SMALL_STATE(73)] = 3030,
  [SMALL_STATE(74)] = 3075,
  [SMALL_STATE(75)] = 3120,
  [SMALL_STATE(76)] = 3165,
  [SMALL_STATE(77)] = 3194,
  [SMALL_STATE(78)] = 3222,
  [SMALL_STATE(79)] = 3246,
  [SMALL_STATE(80)] = 3274,
  [SMALL_STATE(81)] = 3298,
  [SMALL_STATE(82)] = 3322,
  [SMALL_STATE(83)] = 3348,
  [SMALL_STATE(84)] = 3372,
  [SMALL_STATE(85)] = 3398,
  [SMALL_STATE(86)] = 3426,
  [SMALL_STATE(87)] = 3468,
  [SMALL_STATE(88)] = 3496,
  [SMALL_STATE(89)] = 3538,
  [SMALL_STATE(90)] = 3566,
  [SMALL_STATE(91)] = 3594,
  [SMALL_STATE(92)] = 3622,
  [SMALL_STATE(93)] = 3650,
  [SMALL_STATE(94)] = 3673,
  [SMALL_STATE(95)] = 3698,
  [SMALL_STATE(96)] = 3721,
  [SMALL_STATE(97)] = 3744,
  [SMALL_STATE(98)] = 3767,
  [SMALL_STATE(99)] = 3790,
  [SMALL_STATE(100)] = 3813,
  [SMALL_STATE(101)] = 3836,
  [SMALL_STATE(102)] = 3859,
  [SMALL_STATE(103)] = 3882,
  [SMALL_STATE(104)] = 3909,
  [SMALL_STATE(105)] = 3932,
  [SMALL_STATE(106)] = 3955,
  [SMALL_STATE(107)] = 3978,
  [SMALL_STATE(108)] = 4001,
  [SMALL_STATE(109)] = 4024,
  [SMALL_STATE(110)] = 4049,
  [SMALL_STATE(111)] = 4072,
  [SMALL_STATE(112)] = 4097,
  [SMALL_STATE(113)] = 4120,
  [SMALL_STATE(114)] = 4143,
  [SMALL_STATE(115)] = 4165,
  [SMALL_STATE(116)] = 4187,
  [SMALL_STATE(117)] = 4209,
  [SMALL_STATE(118)] = 4231,
  [SMALL_STATE(119)] = 4253,
  [SMALL_STATE(120)] = 4275,
  [SMALL_STATE(121)] = 4297,
  [SMALL_STATE(122)] = 4319,
  [SMALL_STATE(123)] = 4341,
  [SMALL_STATE(124)] = 4363,
  [SMALL_STATE(125)] = 4385,
  [SMALL_STATE(126)] = 4407,
  [SMALL_STATE(127)] = 4425,
  [SMALL_STATE(128)] = 4459,
  [SMALL_STATE(129)] = 4493,
  [SMALL_STATE(130)] = 4513,
  [SMALL_STATE(131)] = 4528,
  [SMALL_STATE(132)] = 4543,
  [SMALL_STATE(133)] = 4563,
  [SMALL_STATE(134)] = 4583,
  [SMALL_STATE(135)] = 4601,
  [SMALL_STATE(136)] = 4621,
  [SMALL_STATE(137)] = 4641,
  [SMALL_STATE(138)] = 4661,
  [SMALL_STATE(139)] = 4681,
  [SMALL_STATE(140)] = 4696,
  [SMALL_STATE(141)] = 4709,
  [SMALL_STATE(142)] = 4728,
  [SMALL_STATE(143)] = 4747,
  [SMALL_STATE(144)] = 4766,
  [SMALL_STATE(145)] = 4785,
  [SMALL_STATE(146)] = 4800,
  [SMALL_STATE(147)] = 4813,
  [SMALL_STATE(148)] = 4832,
  [SMALL_STATE(149)] = 4845,
  [SMALL_STATE(150)] = 4858,
  [SMALL_STATE(151)] = 4873,
  [SMALL_STATE(152)] = 4888,
  [SMALL_STATE(153)] = 4907,
  [SMALL_STATE(154)] = 4921,
  [SMALL_STATE(155)] = 4937,
  [SMALL_STATE(156)] = 4951,
  [SMALL_STATE(157)] = 4965,
  [SMALL_STATE(158)] = 4979,
  [SMALL_STATE(159)] = 4993,
  [SMALL_STATE(160)] = 5003,
  [SMALL_STATE(161)] = 5019,
  [SMALL_STATE(162)] = 5029,
  [SMALL_STATE(163)] = 5045,
  [SMALL_STATE(164)] = 5061,
  [SMALL_STATE(165)] = 5075,
  [SMALL_STATE(166)] = 5091,
  [SMALL_STATE(167)] = 5102,
  [SMALL_STATE(168)] = 5113,
  [SMALL_STATE(169)] = 5124,
  [SMALL_STATE(170)] = 5135,
  [SMALL_STATE(171)] = 5146,
  [SMALL_STATE(172)] = 5159,
  [SMALL_STATE(173)] = 5172,
  [SMALL_STATE(174)] = 5183,
  [SMALL_STATE(175)] = 5194,
  [SMALL_STATE(176)] = 5207,
  [SMALL_STATE(177)] = 5218,
  [SMALL_STATE(178)] = 5229,
  [SMALL_STATE(179)] = 5240,
  [SMALL_STATE(180)] = 5251,
  [SMALL_STATE(181)] = 5262,
  [SMALL_STATE(182)] = 5275,
  [SMALL_STATE(183)] = 5288,
  [SMALL_STATE(184)] = 5299,
  [SMALL_STATE(185)] = 5309,
  [SMALL_STATE(186)] = 5319,
  [SMALL_STATE(187)] = 5329,
  [SMALL_STATE(188)] = 5339,
  [SMALL_STATE(189)] = 5349,
  [SMALL_STATE(190)] = 5359,
  [SMALL_STATE(191)] = 5369,
  [SMALL_STATE(192)] = 5379,
  [SMALL_STATE(193)] = 5389,
  [SMALL_STATE(194)] = 5399,
  [SMALL_STATE(195)] = 5409,
  [SMALL_STATE(196)] = 5419,
  [SMALL_STATE(197)] = 5429,
  [SMALL_STATE(198)] = 5439,
  [SMALL_STATE(199)] = 5449,
  [SMALL_STATE(200)] = 5459,
  [SMALL_STATE(201)] = 5469,
  [SMALL_STATE(202)] = 5479,
  [SMALL_STATE(203)] = 5489,
  [SMALL_STATE(204)] = 5499,
  [SMALL_STATE(205)] = 5509,
  [SMALL_STATE(206)] = 5519,
  [SMALL_STATE(207)] = 5529,
  [SMALL_STATE(208)] = 5539,
  [SMALL_STATE(209)] = 5549,
  [SMALL_STATE(210)] = 5559,
  [SMALL_STATE(211)] = 5569,
  [SMALL_STATE(212)] = 5579,
  [SMALL_STATE(213)] = 5589,
  [SMALL_STATE(214)] = 5599,
  [SMALL_STATE(215)] = 5606,
  [SMALL_STATE(216)] = 5613,
  [SMALL_STATE(217)] = 5620,
  [SMALL_STATE(218)] = 5627,
  [SMALL_STATE(219)] = 5634,
  [SMALL_STATE(220)] = 5641,
  [SMALL_STATE(221)] = 5648,
  [SMALL_STATE(222)] = 5655,
  [SMALL_STATE(223)] = 5662,
  [SMALL_STATE(224)] = 5669,
  [SMALL_STATE(225)] = 5676,
  [SMALL_STATE(226)] = 5683,
  [SMALL_STATE(227)] = 5690,
  [SMALL_STATE(228)] = 5697,
  [SMALL_STATE(229)] = 5704,
  [SMALL_STATE(230)] = 5711,
  [SMALL_STATE(231)] = 5718,
  [SMALL_STATE(232)] = 5725,
  [SMALL_STATE(233)] = 5732,
  [SMALL_STATE(234)] = 5739,
  [SMALL_STATE(235)] = 5746,
  [SMALL_STATE(236)] = 5753,
  [SMALL_STATE(237)] = 5760,
  [SMALL_STATE(238)] = 5767,
  [SMALL_STATE(239)] = 5774,
  [SMALL_STATE(240)] = 5781,
  [SMALL_STATE(241)] = 5788,
  [SMALL_STATE(242)] = 5795,
  [SMALL_STATE(243)] = 5802,
};

static TSParseActionEntry ts_parse_actions[] = {
  [0] = {.entry = {.count = 0, .reusable = false}},
  [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(),
  [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT_EXTRA(),
  [5] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_file_top, 0),
  [7] = {.entry = {.count = 1, .reusable = false}}, SHIFT(30),
  [9] = {.entry = {.count = 1, .reusable = false}}, SHIFT(233),
  [11] = {.entry = {.count = 1, .reusable = false}}, SHIFT(46),
  [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(48),
  [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(197),
  [17] = {.entry = {.count = 1, .reusable = false}}, SHIFT(167),
  [19] = {.entry = {.count = 1, .reusable = false}}, SHIFT(129),
  [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(225),
  [23] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_variable_base, 3),
  [25] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_variable_base, 3),
  [27] = {.entry = {.count = 1, .reusable = true}}, SHIFT(152),
  [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69),
  [31] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_variable_base, 1),
  [33] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_variable_base, 1),
  [35] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_variable_base, 2),
  [37] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_variable_base, 2),
  [39] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_variable_base_repeat1, 2),
  [41] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_variable_base_repeat1, 2),
  [43] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_variable_base_repeat1, 2), SHIFT_REPEAT(152),
  [46] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_variable_base_repeat1, 2), SHIFT_REPEAT(69),
  [49] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_string, 3),
  [51] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string, 3),
  [53] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_string, 2),
  [55] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string, 2),
  [57] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_constant, 1),
  [59] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_constant, 1),
  [61] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_variable_base_repeat1, 3),
  [63] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_variable_base_repeat1, 3),
  [65] = {.entry = {.count = 1, .reusable = false}}, SHIFT(140),
  [67] = {.entry = {.count = 1, .reusable = false}}, SHIFT(225),
  [69] = {.entry = {.count = 1, .reusable = false}}, SHIFT(33),
  [71] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33),
  [73] = {.entry = {.count = 1, .reusable = false}}, SHIFT_EXTRA(),
  [75] = {.entry = {.count = 1, .reusable = false}}, SHIFT(112),
  [77] = {.entry = {.count = 1, .reusable = false}}, SHIFT(15),
  [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_new_fun_scope, 3),
  [81] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_new_fun_scope, 3),
  [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_new_fun_scope, 4),
  [85] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_new_fun_scope, 4),
  [87] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_typecase, 2),
  [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_typecase, 2),
  [91] = {.entry = {.count = 1, .reusable = true}}, SHIFT(188),
  [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_file_top_repeat1, 2),
  [95] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_file_top_repeat1, 2), SHIFT_REPEAT(30),
  [98] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_file_top_repeat1, 2), SHIFT_REPEAT(233),
  [101] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_file_top_repeat1, 2), SHIFT_REPEAT(46),
  [104] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_file_top_repeat1, 2), SHIFT_REPEAT(48),
  [107] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_file_top_repeat1, 2), SHIFT_REPEAT(197),
  [110] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_file_top_repeat1, 2), SHIFT_REPEAT(167),
  [113] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_file_top_repeat1, 2), SHIFT_REPEAT(129),
  [116] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_file_top_repeat1, 2), SHIFT_REPEAT(225),
  [119] = {.entry = {.count = 1, .reusable = true}}, SHIFT(146),
  [121] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_file_top, 1),
  [123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16),
  [125] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_typecase, 4),
  [127] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_typecase, 4),
  [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105),
  [131] = {.entry = {.count = 1, .reusable = false}}, SHIFT(142),
  [133] = {.entry = {.count = 1, .reusable = false}}, SHIFT(66),
  [135] = {.entry = {.count = 1, .reusable = false}}, SHIFT(3),
  [137] = {.entry = {.count = 1, .reusable = false}}, SHIFT(127),
  [139] = {.entry = {.count = 1, .reusable = false}}, SHIFT(57),
  [141] = {.entry = {.count = 1, .reusable = false}}, SHIFT(193),
  [143] = {.entry = {.count = 1, .reusable = false}}, SHIFT(226),
  [145] = {.entry = {.count = 1, .reusable = false}}, SHIFT(9),
  [147] = {.entry = {.count = 1, .reusable = false}}, SHIFT(154),
  [149] = {.entry = {.count = 1, .reusable = false}}, SHIFT(13),
  [151] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13),
  [153] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_stmt, 2),
  [155] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__newline, 2),
  [157] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym__newline, 2),
  [159] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__newline, 2), SHIFT_REPEAT(28),
  [162] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__newline, 2), SHIFT_REPEAT(28),
  [165] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_variable_base_repeat1, 2), SHIFT_REPEAT(142),
  [168] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_variable_base_repeat1, 2), SHIFT_REPEAT(66),
  [171] = {.entry = {.count = 1, .reusable = false}}, SHIFT(14),
  [173] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14),
  [175] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_factor, 1),
  [177] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_factor, 1),
  [179] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54),
  [181] = {.entry = {.count = 1, .reusable = true}}, SHIFT(139),
  [183] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130),
  [185] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__newline, 2), SHIFT_REPEAT(33),
  [188] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__newline, 2), SHIFT_REPEAT(33),
  [191] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_factor, 2),
  [193] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_factor, 2),
  [195] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_stmt, 2),
  [197] = {.entry = {.count = 1, .reusable = false}}, SHIFT(28),
  [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28),
  [201] = {.entry = {.count = 1, .reusable = false}}, SHIFT(49),
  [203] = {.entry = {.count = 1, .reusable = false}}, SHIFT(150),
  [205] = {.entry = {.count = 1, .reusable = false}}, SHIFT(131),
  [207] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3),
  [209] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127),
  [211] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57),
  [213] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90),
  [215] = {.entry = {.count = 1, .reusable = true}}, SHIFT(193),
  [217] = {.entry = {.count = 1, .reusable = true}}, SHIFT(226),
  [219] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9),
  [221] = {.entry = {.count = 1, .reusable = true}}, SHIFT(154),
  [223] = {.entry = {.count = 1, .reusable = false}}, SHIFT(67),
  [225] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68),
  [227] = {.entry = {.count = 1, .reusable = false}}, SHIFT(63),
  [229] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77),
  [231] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96),
  [233] = {.entry = {.count = 1, .reusable = false}}, SHIFT(74),
  [235] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115),
  [237] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104),
  [239] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64),
  [241] = {.entry = {.count = 1, .reusable = false}}, SHIFT(61),
  [243] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87),
  [245] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62),
  [247] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119),
  [249] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_factor, 4),
  [251] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_factor, 4),
  [253] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fcall_args, 2),
  [255] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_fcall_args, 2),
  [257] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30),
  [259] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128),
  [261] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56),
  [263] = {.entry = {.count = 1, .reusable = true}}, SHIFT(190),
  [265] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39),
  [267] = {.entry = {.count = 1, .reusable = true}}, SHIFT(162),
  [269] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_factor, 3),
  [271] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_factor, 3),
  [273] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bool_expr, 2),
  [275] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86),
  [277] = {.entry = {.count = 1, .reusable = false}}, SHIFT(86),
  [279] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fcall_args, 3),
  [281] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_fcall_args, 3),
  [283] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bool_expr, 1),
  [285] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_bool_expr_repeat1, 2),
  [287] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_bool_expr_repeat1, 2), SHIFT_REPEAT(86),
  [290] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_bool_expr_repeat1, 2), SHIFT_REPEAT(86),
  [293] = {.entry = {.count = 1, .reusable = false}}, SHIFT(190),
  [295] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fcall_def, 6),
  [297] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_fcall_def, 6),
  [299] = {.entry = {.count = 1, .reusable = false}}, SHIFT(88),
  [301] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bool_expr, 1),
  [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fcall_def, 3),
  [305] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_fcall_def, 3),
  [307] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fcall_def, 5),
  [309] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_fcall_def, 5),
  [311] = {.entry = {.count = 1, .reusable = true}}, SHIFT(192),
  [313] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fcall_args, 4),
  [315] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_fcall_args, 4),
  [317] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fcall_def, 7),
  [319] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_fcall_def, 7),
  [321] = {.entry = {.count = 1, .reusable = true}}, SHIFT(210),
  [323] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bool_expr, 2),
  [325] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_bool_expr_repeat1, 2), SHIFT_REPEAT(88),
  [328] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_bool_expr_repeat1, 2),
  [330] = {.entry = {.count = 1, .reusable = false}}, SHIFT(200),
  [332] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_variable_bit_sel, 4),
  [334] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_variable_bit_sel, 4),
  [336] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_variable_bit_sel, 5),
  [338] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_variable_bit_sel, 5),
  [340] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_bool_expr_cont, 2),
  [342] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bool_expr_cont, 2),
  [344] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_factor, 5),
  [346] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_factor, 5),
  [348] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fcall_args, 6),
  [350] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_fcall_args, 6),
  [352] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65),
  [354] = {.entry = {.count = 1, .reusable = false}}, SHIFT(139),
  [356] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_variable_bit_sel, 3),
  [358] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_variable_bit_sel, 3),
  [360] = {.entry = {.count = 1, .reusable = false}}, SHIFT(213),
  [362] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_fcall_args, 5),
  [364] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_fcall_args, 5),
  [366] = {.entry = {.count = 1, .reusable = false}}, SHIFT(191),
  [368] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73),
  [370] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47),
  [372] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45),
  [374] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_assign_attribute, 1),
  [376] = {.entry = {.count = 1, .reusable = false}}, SHIFT(159),
  [378] = {.entry = {.count = 1, .reusable = false}}, SHIFT(151),
  [380] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assign_attribute, 1),
  [382] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53),
  [384] = {.entry = {.count = 1, .reusable = true}}, SHIFT(223),
  [386] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52),
  [388] = {.entry = {.count = 1, .reusable = true}}, SHIFT(237),
  [390] = {.entry = {.count = 1, .reusable = false}}, SHIFT(55),
  [392] = {.entry = {.count = 1, .reusable = false}}, SHIFT(199),
  [394] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_if_stmt, 3),
  [396] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_if_stmt, 3),
  [398] = {.entry = {.count = 1, .reusable = false}}, SHIFT(195),
  [400] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_if_stmt, 6),
  [402] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_if_stmt, 6),
  [404] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_if_stmt_repeat1, 2), SHIFT_REPEAT(55),
  [407] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_if_stmt_repeat1, 2),
  [409] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_if_stmt_repeat1, 2),
  [411] = {.entry = {.count = 1, .reusable = false}}, SHIFT(206),
  [413] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_if_stmt, 5),
  [415] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_if_stmt, 5),
  [417] = {.entry = {.count = 1, .reusable = false}}, SHIFT(203),
  [419] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_if_stmt, 4),
  [421] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_if_stmt, 4),
  [423] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_new_scope, 3),
  [425] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_new_scope, 3),
  [427] = {.entry = {.count = 1, .reusable = true}}, SHIFT(238),
  [429] = {.entry = {.count = 1, .reusable = true}}, SHIFT(153),
  [431] = {.entry = {.count = 1, .reusable = true}}, SHIFT(241),
  [433] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38),
  [435] = {.entry = {.count = 1, .reusable = true}}, SHIFT(235),
  [437] = {.entry = {.count = 1, .reusable = true}}, SHIFT(141),
  [439] = {.entry = {.count = 1, .reusable = true}}, SHIFT(232),
  [441] = {.entry = {.count = 1, .reusable = true}}, SHIFT(147),
  [443] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_new_scope, 4),
  [445] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_new_scope, 4),
  [447] = {.entry = {.count = 1, .reusable = true}}, SHIFT(230),
  [449] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_if_stmt_repeat1, 3),
  [451] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_if_stmt_repeat1, 3),
  [453] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_if_stmt_repeat1, 4),
  [455] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_if_stmt_repeat1, 4),
  [457] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_assign_attribute, 2),
  [459] = {.entry = {.count = 1, .reusable = false}}, SHIFT(161),
  [461] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assign_attribute, 2),
  [463] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11),
  [465] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_fcall_def_repeat1, 2),
  [467] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_fcall_def_repeat1, 2), SHIFT_REPEAT(153),
  [470] = {.entry = {.count = 1, .reusable = false}}, SHIFT(8),
  [472] = {.entry = {.count = 1, .reusable = true}}, SHIFT(160),
  [474] = {.entry = {.count = 1, .reusable = false}}, SHIFT(160),
  [476] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_fcall_def_repeat2, 3),
  [478] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_fcall_def_repeat2, 2),
  [480] = {.entry = {.count = 1, .reusable = true}}, SHIFT(155),
  [482] = {.entry = {.count = 1, .reusable = false}}, SHIFT(27),
  [484] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27),
  [486] = {.entry = {.count = 1, .reusable = false}}, SHIFT(12),
  [488] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12),
  [490] = {.entry = {.count = 1, .reusable = false}}, SHIFT(7),
  [492] = {.entry = {.count = 1, .reusable = true}}, SHIFT(165),
  [494] = {.entry = {.count = 1, .reusable = false}}, SHIFT(165),
  [496] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assign_attribute, 3),
  [498] = {.entry = {.count = 1, .reusable = false}}, SHIFT(44),
  [500] = {.entry = {.count = 1, .reusable = true}}, SHIFT(163),
  [502] = {.entry = {.count = 1, .reusable = false}}, SHIFT(163),
  [504] = {.entry = {.count = 1, .reusable = false}}, SHIFT(41),
  [506] = {.entry = {.count = 1, .reusable = false}}, SHIFT(37),
  [508] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37),
  [510] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_string_repeat1, 2),
  [512] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_string_repeat1, 2), SHIFT_REPEAT(165),
  [515] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_string_repeat1, 2), SHIFT_REPEAT(165),
  [518] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_ctrl_stmt, 1),
  [520] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_ctrl_stmt, 1),
  [522] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_ass_fcall_stmt, 3),
  [524] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_ass_fcall_stmt, 3),
  [526] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_ass_fcall_stmt, 1),
  [528] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_ass_fcall_stmt, 1),
  [530] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_if_stmt, 8),
  [532] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_if_stmt, 8),
  [534] = {.entry = {.count = 1, .reusable = true}}, SHIFT(239),
  [536] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_while_stmt, 3),
  [538] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_while_stmt, 3),
  [540] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_while_stmt, 4),
  [542] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_while_stmt, 4),
  [544] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_assignment_cont, 2),
  [546] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment_cont, 2),
  [548] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_assignment_cont, 3),
  [550] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment_cont, 3),
  [552] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_for_stmt, 6),
  [554] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_for_stmt, 6),
  [556] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_if_stmt, 7),
  [558] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_if_stmt, 7),
  [560] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_for_stmt, 5),
  [562] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_for_stmt, 5),
  [564] = {.entry = {.count = 1, .reusable = true}}, SHIFT(240),
  [566] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_fcall_def_repeat2, 2), SHIFT_REPEAT(241),
  [569] = {.entry = {.count = 1, .reusable = true}}, SHIFT(158),
  [571] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31),
  [573] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26),
  [575] = {.entry = {.count = 1, .reusable = true}}, SHIFT(143),
  [577] = {.entry = {.count = 1, .reusable = true}}, SHIFT(209),
  [579] = {.entry = {.count = 1, .reusable = true}}, SHIFT(144),
  [581] = {.entry = {.count = 1, .reusable = true}}, SHIFT(204),
  [583] = {.entry = {.count = 1, .reusable = false}}, SHIFT(236),
  [585] = {.entry = {.count = 1, .reusable = false}}, SHIFT(214),
  [587] = {.entry = {.count = 1, .reusable = true}}, SHIFT(243),
  [589] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97),
  [591] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10),
  [593] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92),
  [595] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85),
  [597] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59),
  [599] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112),
  [601] = {.entry = {.count = 1, .reusable = true}},  ACCEPT_INPUT(),
  [603] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50),
  [605] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34),
  [607] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4),
  [609] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71),
  [611] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43),
  [613] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125),
  [615] = {.entry = {.count = 1, .reusable = true}}, SHIFT(201),
  [617] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15),
  [619] = {.entry = {.count = 1, .reusable = true}}, SHIFT(202),
  [621] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51),
  [623] = {.entry = {.count = 1, .reusable = true}}, SHIFT(212),
  [625] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60),
  [627] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58),
  [629] = {.entry = {.count = 1, .reusable = true}}, SHIFT(189),
  [631] = {.entry = {.count = 1, .reusable = true}}, SHIFT(196),
  [633] = {.entry = {.count = 1, .reusable = true}}, SHIFT(186),
  [635] = {.entry = {.count = 1, .reusable = true}}, SHIFT(156),
  [637] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75),
};

#ifdef __cplusplus
extern "C" {
#endif
#ifdef _WIN32
#define extern __declspec(dllexport)
#endif

extern const TSLanguage *tree_sitter_pyrope(void) {
  static TSLanguage language = {
    .version = LANGUAGE_VERSION,
    .symbol_count = SYMBOL_COUNT,
    .alias_count = ALIAS_COUNT,
    .token_count = TOKEN_COUNT,
    .external_token_count = EXTERNAL_TOKEN_COUNT,
    .symbol_names = ts_symbol_names,
    .symbol_metadata = ts_symbol_metadata,
    .parse_table = (const uint16_t *)ts_parse_table,
    .parse_actions = ts_parse_actions,
    .lex_modes = ts_lex_modes,
    .alias_sequences = (const TSSymbol *)ts_alias_sequences,
    .max_alias_sequence_length = MAX_ALIAS_SEQUENCE_LENGTH,
    .lex_fn = ts_lex,
    .keyword_lex_fn = ts_lex_keywords,
    .keyword_capture_token = sym_identifier,
    .field_count = FIELD_COUNT,
    .large_state_count = LARGE_STATE_COUNT,
    .small_parse_table = (const uint16_t *)ts_small_parse_table,
    .small_parse_table_map = (const uint32_t *)ts_small_parse_table_map,
    .public_symbol_map = ts_symbol_map,
    .alias_map = ts_non_terminal_alias_map,
    .state_count = STATE_COUNT,
  };
  return &language;
}
#ifdef __cplusplus
}
#endif
